doc.rust-lang.org
fn by_ref(&mut self) -> &mut Self
Creates a "by reference" adapter for this instance of Iterator.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn any<F>(&mut self, f: F) -> bool
Tests if any element of the iterator matches a predicate.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn all<F>(&mut self, f: F) -> bool
Tests if every element of the iterator matches a predicate.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
type Item
The type of the elements being iterated over.
associated_type
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait Iterator
A trait for dealing with iterators.
trait
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn len(&self) -> usize
Returns the exact remaining length of the iterator.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait ExactSizeIterator
An iterator that knows its exact length.
trait
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn try_rfold<B, F, R>(&mut self, init: B, f: F) -> R
This is the reverse version of Iterator::try_fold(): it takes elements starting from the back of the iterator.
method
core
Stable since 1.27.0
Version 1.100.0-nightly
doc.rust-lang.org
fn rfold<B, F>(self, init: B, f: F) -> B
An iterator method that reduces the iterator's elements to a single, final value, starting from the back.
method
core
Stable since 1.27.0
Version 1.100.0-nightly
doc.rust-lang.org
fn rfind<P>(&mut self, predicate: P) -> Option<<Self as >::Item>
Searches for an element of an iterator from the back that satisfies a predicate.
method
core
Stable since 1.27.0
Version 1.100.0-nightly
doc.rust-lang.org
fn nth_back(&mut self, n: usize) -> Option<<Self as >::Item>
Returns the nth element from the end of the iterator.
method
core
Stable since 1.37.0
Version 1.100.0-nightly
doc.rust-lang.org
fn next_back(&mut self) -> Option<<Self as >::Item>
Removes and returns an element from the end of the iterator.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait DoubleEndedIterator
An iterator able to yield elements from both ends.
trait
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn into_iter(self) -> <Self as >::IntoIter
Creates an iterator from a value.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
type Item
The type of the elements being iterated over.
associated_type
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
type IntoIter
Which kind of iterator are we turning this into?
associated_type
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait IntoIterator
Conversion into an Iterator.
trait
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn from_iter<T>(iter: T) -> Self
Creates a value from an iterator.
associated_function
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait FromIterator<A>
Conversion from an Iterator.
trait
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn extend<T>(&mut self, iter: T)
Extends a collection with the contents of an iterator.
method
core
Stable since 1.0.0
Version 1.100.0-nightly