doc.rust-lang.org
pub mod i128
Redundant constants module for the i128 primitive type.
module
core
Stable since 1.26.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait FusedIterator
An iterator that always continues to yield None when exhausted.
trait
core
Stable since 1.26.0
Version 1.100.0-nightly
doc.rust-lang.org
fn zip<U>(self, other: U) -> Zip<Self, <U as >::IntoIter>
'Zips up' two iterators into a single iterator of pairs.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn unzip<A, B, FromA, FromB>(self) -> (FromA, FromB)
Converts an iterator of pairs into a pair of containers.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn try_for_each<F, R>(&mut self, f: F) -> R
An iterator method that applies a fallible function to each item in the iterator, stopping at the first error and returning that error.
method
core
Stable since 1.27.0
Version 1.100.0-nightly
doc.rust-lang.org
fn try_fold<B, F, R>(&mut self, init: B, f: F) -> R
An iterator method that applies a function as long as it returns successfully, producing a single, final value.
method
core
Stable since 1.27.0
Version 1.100.0-nightly
doc.rust-lang.org
fn take_while<P>(self, predicate: P) -> TakeWhile<Self, P>
Creates an iterator that yields elements based on a predicate.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn take(self, n: usize) -> Take<Self>
Creates an iterator that yields the first n elements, or fewer if the underlying iterator ends sooner.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn sum<S>(self) -> S
Sums the elements of an iterator.
method
core
Stable since 1.11.0
Version 1.100.0-nightly
doc.rust-lang.org
fn step_by(self, step: usize) -> StepBy<Self>
Creates an iterator starting at the same point, but stepping by the given amount at each iteration.
method
core
Stable since 1.28.0
Version 1.100.0-nightly
doc.rust-lang.org
fn skip_while<P>(self, predicate: P) -> SkipWhile<Self, P>
Creates an iterator that skips elements based on a predicate.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn skip(self, n: usize) -> Skip<Self>
Creates an iterator that skips the first n elements.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn size_hint(&self) -> (usize, Option<usize>)
Returns the bounds on the remaining length of the iterator.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn scan<St, B, F>(self, initial_state: St, f: F) -> Scan<Self, St, F>
An iterator adapter which, like fold, holds internal state, but unlike fold, produces a new iterator.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn rposition<P>(&mut self, predicate: P) -> Option<usize>
Searches for an element in an iterator from the right, returning its index.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn rev(self) -> Rev<Self>
Reverses an iterator's direction.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn reduce<F>(self, f: F) -> Option<<Self as >::Item>
Reduces the elements to a single one, by repeatedly applying a reducing operation.
method
core
Stable since 1.51.0
Version 1.100.0-nightly
doc.rust-lang.org
fn product<P>(self) -> P
Iterates over the entire iterator, multiplying all the elements.
method
core
Stable since 1.11.0
Version 1.100.0-nightly
doc.rust-lang.org
fn position<P>(&mut self, predicate: P) -> Option<usize>
Searches for an element in an iterator, returning its index.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn peekable(self) -> Peekable<Self>
Creates an iterator which can use the peek and peek_mut methods to look at the next element of the iterator without consuming it. See their documentation for more information.
method
core
Stable since 1.0.0
Version 1.100.0-nightly