[][src]Struct staticvec::StaticVecDrain

pub struct StaticVecDrain<'a, T: 'a, const N: usize> { /* fields omitted */ }

A "draining" iterator, analogous to vec::Drain. Instances of StaticVecDrain are created by the drain_iter method on StaticVec, as while the drain method does have a similar purpose, it works by immediately returning a new StaticVec as opposed to an iterator.

Implementations

impl<'a, T: 'a, const N: usize> StaticVecDrain<'a, T, N>[src]

pub fn bounds_to_string(&self) -> String where
    T: Debug
[src]

This is supported on feature="std" only.

Returns a string displaying the current values of the iterator's start and end elements on two separate lines. Locally requires that T implements Debug to make it possible to pretty-print the elements.

pub const fn as_slice(&self) -> &[T][src]

Returns an immutable slice consisting of the current range of elements the iterator has a view over.

Trait Implementations

impl<'a, T: 'a + Debug, const N: usize> Debug for StaticVecDrain<'a, T, N>[src]

impl<'a, T: 'a, const N: usize> DoubleEndedIterator for StaticVecDrain<'a, T, N>[src]

impl<'a, T: 'a, const N: usize> Drop for StaticVecDrain<'a, T, N>[src]

impl<'a, T: 'a, const N: usize> ExactSizeIterator for StaticVecDrain<'a, T, N>[src]

impl<'a, T: 'a, const N: usize> FusedIterator for StaticVecDrain<'a, T, N>[src]

impl<'a, T: 'a, const N: usize> Iterator for StaticVecDrain<'a, T, N>[src]

type Item = T

The type of the elements being iterated over.

impl<'a, T: 'a + Send, const N: usize> Send for StaticVecDrain<'a, T, N>[src]

impl<'a, T: 'a + Sync, const N: usize> Sync for StaticVecDrain<'a, T, N>[src]

impl<'a, T: 'a, const N: usize> TrustedLen for StaticVecDrain<'a, T, N>[src]

Auto Trait Implementations

impl<'a, const N: usize, T> RefUnwindSafe for StaticVecDrain<'a, T, N> where
    T: RefUnwindSafe

impl<'a, const N: usize, T> Unpin for StaticVecDrain<'a, T, N>

impl<'a, const N: usize, T> UnwindSafe for StaticVecDrain<'a, T, N> where
    T: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.