Struct Drain
pub struct Drain<'a, T: 'a, const CAP: usize> { /* private fields */ }
A draining iterator for ArrayVec.
Trait Implementations
impl<'a, T: 'a, const CAP: usize> DoubleEndedIterator for Drain<'a, T, CAP>
fn next_back(&mut self) -> Option<Self::Item>
impl<'a, T: 'a, const CAP: usize> Drop for Drain<'a, T, CAP>
fn drop(&mut self)
impl<'a, T: 'a, const CAP: usize> ExactSizeIterator for Drain<'a, T, CAP>
impl<'a, T: 'a, const CAP: usize> Iterator for Drain<'a, T, CAP>
type Item = T;fn next(&mut self) -> Option<Self::Item>fn size_hint(&self) -> (usize, Option<usize>)
impl<'a, T: Send, const CAP: usize> Send for Drain<'a, T, CAP>
impl<'a, T: Sync, const CAP: usize> Sync for Drain<'a, T, CAP>
Auto Trait Implementations
impl<'a, T, const CAP: usize> Freeze for Drain<'a, T, CAP>
where
Iter<'a, T>: Freeze,
*mut ArrayVec<T, CAP>: Freeze,
impl<'a, T, const CAP: usize> RefUnwindSafe for Drain<'a, T, CAP>
where
Iter<'a, T>: RefUnwindSafe,
*mut ArrayVec<T, CAP>: RefUnwindSafe,
impl<'a, T, const CAP: usize> Unpin for Drain<'a, T, CAP>
where
Iter<'a, T>: Unpin,
*mut ArrayVec<T, CAP>: Unpin,
impl<'a, T, const CAP: usize> UnsafeUnpin for Drain<'a, T, CAP>
where
Iter<'a, T>: UnsafeUnpin,
*mut ArrayVec<T, CAP>: UnsafeUnpin,
impl<'a, T, const CAP: usize> UnwindSafe for Drain<'a, T, CAP>
where
Iter<'a, T>: UnwindSafe,
*mut ArrayVec<T, CAP>: UnwindSafe,
Blanket Implementations
impl<I> IntoIterator for Drain<'a, T, CAP>
where
I: Iterator,
type Item = <I as Iterator>::Item;type IntoIter = I;fn into_iter(self) -> I
impl<T> Any for Drain<'a, T, CAP>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Drain<'a, T, CAP>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Drain<'a, T, CAP>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for Drain<'a, T, CAP>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for Drain<'a, T, CAP>
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, CAP>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Drain<'a, T, CAP>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>