[−][src]Struct staticvec::PushCapacityError
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> 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: PartialEq, const N: usize> PartialEq<PushCapacityError<T, N>> for PushCapacityError<T, N>
[src]
fn eq(&self, other: &PushCapacityError<T, N>) -> bool
[src]
fn ne(&self, other: &PushCapacityError<T, N>) -> bool
[src]
impl<T: Eq, const N: usize> Eq for PushCapacityError<T, N>
[src]
impl<T, const N: usize> StructuralPartialEq for PushCapacityError<T, N>
[src]
impl<T, const N: usize> StructuralEq for PushCapacityError<T, N>
[src]
impl<T, const N: usize> AsRef<T> for PushCapacityError<T, N>
[src]
impl<T, const N: usize> AsMut<T> for PushCapacityError<T, N>
[src]
impl<T: Clone, const N: usize> Clone for PushCapacityError<T, N>
[src]
fn clone(&self) -> PushCapacityError<T, N>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Debug, const N: usize> Error for PushCapacityError<T, N>
[src]
Auto Trait Implementations
impl<const N: usize, T> Unpin for PushCapacityError<T, N> where
T: Unpin,
T: Unpin,
impl<const N: usize, T> Send for PushCapacityError<T, N> where
T: Send,
T: Send,
impl<const N: usize, T> Sync for PushCapacityError<T, N> where
T: Sync,
T: Sync,
impl<const N: usize, T> UnwindSafe for PushCapacityError<T, N> where
T: UnwindSafe,
T: UnwindSafe,
impl<const N: usize, T> RefUnwindSafe for PushCapacityError<T, N> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,