pub trait DoubleEndedFallibleStreamingIterator: FallibleStreamingIterator {
// Required method
fn advance_back(&mut self) -> Result<(), Self::Error>;
// Provided method
fn next_back(&mut self) -> Result<Option<&Self::Item>, Self::Error> { ... }
}
Expand description
A fallible, streaming iterator which can be advanced from either end.
Required Methods§
Sourcefn advance_back(&mut self) -> Result<(), Self::Error>
fn advance_back(&mut self) -> Result<(), Self::Error>
Advances the state of the iterator to the next item from the end.
Iterators start just after the last item, so this method should be called before get
when iterating.
The behavior of calling this method after get
has returned None
, or after this method
or advance
has returned an error is unspecified.