Struct Drain
pub struct Drain<'a, T: 'a + Array> { /* private fields */ }
An iterator that removes the items from a SmallVec and yields them by value.
Returned from SmallVec::drain.
Trait Implementations
impl<'a, T: 'a + Array> Debug for Drain<'a, T>
where
T::Item: Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<'a, T: 'a + Array> DoubleEndedIterator for Drain<'a, T>
fn next_back(&mut self) -> Option<T::Item>
impl<'a, T: 'a + Array> Drop for Drain<'a, T>
fn drop(&mut self)
impl<'a, T: 'a + Array> Iterator for Drain<'a, T>
type Item = <T as Array>::Item;fn next(&mut self) -> Option<T::Item>fn size_hint(&self) -> (usize, Option<usize>)
impl<'a, T: Array> ExactSizeIterator for Drain<'a, T>
fn len(&self) -> usize
impl<'a, T: Array> FusedIterator for Drain<'a, T>
impl<'a, T: Send + Array> Send for Drain<'a, T>
impl<'a, T: Sync + Array> Sync for Drain<'a, T>
Auto Trait Implementations
impl<'a, T> Freeze for Drain<'a, T>
where
Iter<'a, <T as Array>::Item>: Freeze,
NonNull<SmallVec<T>>: Freeze,
impl<'a, T> RefUnwindSafe for Drain<'a, T>
where
Iter<'a, <T as Array>::Item>: RefUnwindSafe,
NonNull<SmallVec<T>>: RefUnwindSafe,
impl<'a, T> Unpin for Drain<'a, T>
where
Iter<'a, <T as Array>::Item>: Unpin,
NonNull<SmallVec<T>>: Unpin,
impl<'a, T> UnsafeUnpin for Drain<'a, T>
where
Iter<'a, <T as Array>::Item>: UnsafeUnpin,
NonNull<SmallVec<T>>: UnsafeUnpin,
impl<'a, T> UnwindSafe for Drain<'a, T>
where
Iter<'a, <T as Array>::Item>: UnwindSafe,
NonNull<SmallVec<T>>: UnwindSafe,
Blanket Implementations
impl<I> IntoIterator for Drain<'a, T>
where
I: Iterator,
type Item = <I as Iterator>::Item;type IntoIter = I;fn into_iter(self) -> I
impl<T> Any for Drain<'a, T>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Drain<'a, T>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Drain<'a, T>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for Drain<'a, T>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for Drain<'a, T>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Drain<'a, T>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Drain<'a, T>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>