pub trait DoubleEndedFallibleStreamingIterator: FallibleStreamingIterator {
    fn advance_back(&mut self) -> Result<(), Self::Error>;

    fn next_back(&mut self) -> Result<Option<&Self::Item>, Self::Error> { ... }
}
Available on crate feature io_json only.
Expand description

A fallible, streaming iterator which can be advanced from either end.

Required Methods

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.

Provided Methods

Advances the back of the iterator, returning the last element.

The default implementation simply calls advance_back followed by get.

Implementors