Struct Drain

struct Drain<'a, T> { ... }

A draining iterator for Slab

Implementations

impl<'a, T> Freeze for Drain<'a, T>

impl<'a, T> RefUnwindSafe for Drain<'a, T>

impl<'a, T> Send for Drain<'a, T>

impl<'a, T> Sync for Drain<'a, T>

impl<'a, T> Unpin for Drain<'a, T>

impl<'a, T> UnsafeUnpin for Drain<'a, T>

impl<'a, T> UnwindSafe for Drain<'a, T>

impl<I> IntoIterator for Drain<'a, T>

fn into_iter(self: Self) -> I

impl<T> Any for Drain<'a, T>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Drain<'a, T>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Drain<'a, T>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> Debug for Drain<'_, T>

fn fmt(self: &Self, fmt: &mut Formatter<'_>) -> Result

impl<T> DoubleEndedIterator for Drain<'_, T>

fn next_back(self: &mut Self) -> Option<<Self as >::Item>

impl<T> ExactSizeIterator for Drain<'_, T>

fn len(self: &Self) -> usize

impl<T> From for Drain<'a, T>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> FusedIterator for Drain<'_, T>

impl<T> Iterator for Drain<'_, T>

fn next(self: &mut Self) -> Option<<Self as >::Item>
fn size_hint(self: &Self) -> (usize, Option<usize>)

impl<T, U> Into for Drain<'a, T>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for Drain<'a, T>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Drain<'a, T>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>