[][src]Struct staticvec::PushCapacityError

pub struct PushCapacityError<T, const N: usize>(_);

This error indicates that a push was attempted into a StaticVec which failed because the StaticVec was already at maximum capacity. It contains the value that failed to be pushed so that it can be reused if needed.

Methods

impl<T, const N: usize> PushCapacityError<T, N>[src]

pub fn into_value(self) -> T[src]

Extracts the failed value from the error.

Trait Implementations

impl<T, const N: usize> AsMut<T> for PushCapacityError<T, N>[src]

impl<T, const N: usize> AsRef<T> for PushCapacityError<T, N>[src]

impl<T: Clone, const N: usize> Clone for PushCapacityError<T, N>[src]

impl<T, const N: usize> Debug for PushCapacityError<T, N>[src]

impl<T: Debug, const N: usize> Debug for PushCapacityError<T, N>[src]

impl<T, const N: usize> Display for PushCapacityError<T, N>[src]

impl<T: Eq, const N: usize> Eq for PushCapacityError<T, N>[src]

impl<T: Debug, const N: usize> Error for PushCapacityError<T, N>[src]

impl<T: PartialEq, const N: usize> PartialEq<PushCapacityError<T, N>> for PushCapacityError<T, N>[src]

impl<T, const N: usize> StructuralEq for PushCapacityError<T, N>[src]

impl<T, const N: usize> StructuralPartialEq for PushCapacityError<T, N>[src]

Auto Trait Implementations

impl<const N: usize, T> RefUnwindSafe for PushCapacityError<T, N> where
    T: RefUnwindSafe

impl<const N: usize, T> Send for PushCapacityError<T, N> where
    T: Send

impl<const N: usize, T> Sync for PushCapacityError<T, N> where
    T: Sync

impl<const N: usize, T> Unpin for PushCapacityError<T, N> where
    T: Unpin

impl<const N: usize, T> UnwindSafe for PushCapacityError<T, N> where
    T: UnwindSafe

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<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.