doc.rust-lang.org
fn partition<B, F>(self, f: F) -> (B, B)
Consumes an iterator, creating two collections from it.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn partial_cmp<I>(self, other: I) -> Option<Ordering>
Lexicographically compares the PartialOrd elements of this Iterator with those of another. The comparison works like short-circuit evaluation, returning a result without comparing the remaining elements. As soon as an order can be determined, the evaluation stops and a result is returned.
method
core
Stable since 1.5.0
Version 1.100.0-nightly
doc.rust-lang.org
fn nth(&mut self, n: usize) -> Option<<Self as >::Item>
Returns the nth element of the iterator.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn next(&mut self) -> Option<<Self as >::Item>
Advances the iterator and returns the next value.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn ne<I>(self, other: I) -> bool
Determines if the elements of this Iterator are not equal to those of another.
method
core
Stable since 1.5.0
Version 1.100.0-nightly
doc.rust-lang.org
fn min_by_key<B, F>(self, f: F) -> Option<<Self as >::Item>
Returns the element that gives the minimum value from the specified function.
method
core
Stable since 1.6.0
Version 1.100.0-nightly
doc.rust-lang.org
fn min_by<F>(self, compare: F) -> Option<<Self as >::Item>
Returns the element that gives the minimum value with respect to the specified comparison function.
method
core
Stable since 1.15.0
Version 1.100.0-nightly
doc.rust-lang.org
fn min(self) -> Option<<Self as >::Item>
Returns the minimum element of an iterator.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn max_by_key<B, F>(self, f: F) -> Option<<Self as >::Item>
Returns the element that gives the maximum value from the specified function.
method
core
Stable since 1.6.0
Version 1.100.0-nightly
doc.rust-lang.org
fn max_by<F>(self, compare: F) -> Option<<Self as >::Item>
Returns the element that gives the maximum value with respect to the specified comparison function.
method
core
Stable since 1.15.0
Version 1.100.0-nightly
doc.rust-lang.org
fn max(self) -> Option<<Self as >::Item>
Returns the maximum element of an iterator.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn map_while<B, P>(self, predicate: P) -> MapWhile<Self, P>
Creates an iterator that both yields elements based on a predicate and maps.
method
core
Stable since 1.57.0
Version 1.100.0-nightly
doc.rust-lang.org
fn map<B, F>(self, f: F) -> Map<Self, F>
Takes a closure and creates an iterator which calls that closure on each element.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn lt<I>(self, other: I) -> bool
Determines if the elements of this Iterator are lexicographically less than those of another.
method
core
Stable since 1.5.0
Version 1.100.0-nightly
doc.rust-lang.org
fn le<I>(self, other: I) -> bool
Determines if the elements of this Iterator are lexicographically less or equal to those of another.
method
core
Stable since 1.5.0
Version 1.100.0-nightly
doc.rust-lang.org
fn last(self) -> Option<<Self as >::Item>
Consumes the iterator, returning the last element.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn is_sorted_by_key<F, K>(self, f: F) -> bool
Checks if the elements of this iterator are sorted using the given key extraction function.
method
core
Stable since 1.82.0
Version 1.100.0-nightly
doc.rust-lang.org
fn is_sorted_by<F>(self, compare: F) -> bool
Checks if the elements of this iterator are sorted using the given comparator function.
method
core
Stable since 1.82.0
Version 1.100.0-nightly
doc.rust-lang.org
fn is_sorted(self) -> bool
Checks if the elements of this iterator are sorted.
method
core
Stable since 1.82.0
Version 1.100.0-nightly
doc.rust-lang.org
fn inspect<F>(self, f: F) -> Inspect<Self, F>
Does something with each element of an iterator, passing the value on.
method
core
Stable since 1.0.0
Version 1.100.0-nightly