Struct Drain
pub struct Drain<'a, T> { /* private fields */ }
A draining iterator over the items of an IndexSet.
This struct is created by the IndexSet::drain method.
See its documentation for more.
Implementations
impl<'a, T> Drain<'a, T>
fn as_slice(&self) -> &Slice<T>Returns a slice of the remaining entries in the iterator.
Trait Implementations
impl<T> DoubleEndedIterator for Drain<'_, T>
fn next_back(&mut self) -> Option<Self::Item>fn nth_back(&mut self, n: usize) -> Option<Self::Item>
impl<T> ExactSizeIterator for Drain<'_, T>
fn len(&self) -> usize
impl<T> FusedIterator for Drain<'_, T>
impl<T> Iterator for Drain<'_, T>
type Item = T;fn next(&mut self) -> Option<Self::Item>fn size_hint(&self) -> (usize, Option<usize>)fn count(self) -> usizefn nth(&mut self, n: usize) -> Option<Self::Item>fn last(self) -> Option<Self::Item>fn collect<C>(self) -> C where C: FromIterator<Self::Item>,
impl<T: Debug> Debug for Drain<'_, T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result