Struct staticvec::PushCapacityError
source · [−]pub struct PushCapacityError<T, const N: usize>(_);
Expand description
Implementations
sourceimpl<T, const N: usize> PushCapacityError<T, N>
impl<T, const N: usize> PushCapacityError<T, N>
sourcepub fn into_value(self) -> T
pub fn into_value(self) -> T
Extracts the failed value from the error.
Trait Implementations
sourceimpl<T, const N: usize> AsMut<T> for PushCapacityError<T, N>
impl<T, const N: usize> AsMut<T> for PushCapacityError<T, N>
sourceimpl<T, const N: usize> AsRef<T> for PushCapacityError<T, N>
impl<T, const N: usize> AsRef<T> for PushCapacityError<T, N>
sourceimpl<T: Clone, const N: usize> Clone for PushCapacityError<T, N>
impl<T: Clone, const N: usize> Clone for PushCapacityError<T, N>
sourcefn clone(&self) -> PushCapacityError<T, N>
fn clone(&self) -> PushCapacityError<T, N>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T, const N: usize> Debug for PushCapacityError<T, N>
impl<T, const N: usize> Debug for PushCapacityError<T, N>
sourceimpl<T: Debug, const N: usize> Debug for PushCapacityError<T, N>
impl<T: Debug, const N: usize> Debug for PushCapacityError<T, N>
sourceimpl<T, const N: usize> Display for PushCapacityError<T, N>
impl<T, const N: usize> Display for PushCapacityError<T, N>
sourceimpl<T: Debug, const N: usize> Error for PushCapacityError<T, N>
This is supported on crate feature std
only.
impl<T: Debug, const N: usize> Error for PushCapacityError<T, N>
This is supported on crate feature
std
only.sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl<T: PartialEq, const N: usize> PartialEq<PushCapacityError<T, N>> for PushCapacityError<T, N>
impl<T: PartialEq, const N: usize> PartialEq<PushCapacityError<T, N>> for PushCapacityError<T, N>
sourcefn eq(&self, other: &PushCapacityError<T, N>) -> bool
fn eq(&self, other: &PushCapacityError<T, N>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PushCapacityError<T, N>) -> bool
fn ne(&self, other: &PushCapacityError<T, N>) -> bool
This method tests for !=
.
impl<T: Eq, const N: usize> Eq for PushCapacityError<T, N>
impl<T, const N: usize> StructuralEq for PushCapacityError<T, N>
impl<T, const N: usize> StructuralPartialEq for PushCapacityError<T, N>
Auto Trait Implementations
impl<T, const N: usize> RefUnwindSafe for PushCapacityError<T, N> where
T: RefUnwindSafe,
impl<T, const N: usize> Send for PushCapacityError<T, N> where
T: Send,
impl<T, const N: usize> Sync for PushCapacityError<T, N> where
T: Sync,
impl<T, const N: usize> Unpin for PushCapacityError<T, N> where
T: Unpin,
impl<T, const N: usize> UnwindSafe for PushCapacityError<T, N> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more