Class Subspace :: sus :: iter :: Peekable
An iterator with a peek()
that returns an optional reference to the next
element.
This type is returned from Iterator::peekable()
.
Methods
sus::mem::Clone implementation
sus::iter::ExactSizeIterator<InnerSizedIter, Item>
sus::iter::ExactSizeIterator trait.
sus::iter::Iterator trait.
sus::iter::DoubleEndedIterator trait.
Consume and return the next value of this iterator if a condition is true.
If func
returns true
for the next value of this iterator, consume and
return it. Otherwise, return None
.
sus::cmp::Eq<Item>
Consume and return the next item if it is equal to expected
.
Returns a const reference to the next()
value without advancing the
iterator.
Like next()
, if there is a value, it is wrapped in a Some(T)
.
But if the iteration is over, None
is returned.
Returns a mutable reference to the next()
value without advancing the
iterator.
Like next()
, if there is a value, it is wrapped in a Some(T)
.
But if the iteration is over, None
is returned.
sus::iter::Iterator trait.
sus::iter::TrustedLen<InnerSizedIter>
sus::iter::TrustedLen trait.