Struct arrayvec::CapacityError
source · [−]pub struct CapacityError<T = ()> { /* private fields */ }
Expand description
Error value indicating insufficient capacity
Implementations
sourceimpl<T> CapacityError<T>
impl<T> CapacityError<T>
sourcepub const fn new(element: T) -> CapacityError<T>
pub const fn new(element: T) -> CapacityError<T>
Create a new CapacityError
from element
.
sourcepub fn simplify(self) -> CapacityError
pub fn simplify(self) -> CapacityError
Convert into a CapacityError
that does not carry an element.
Trait Implementations
sourceimpl<T: Clone> Clone for CapacityError<T>
impl<T: Clone> Clone for CapacityError<T>
sourcefn clone(&self) -> CapacityError<T>
fn clone(&self) -> CapacityError<T>
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> Debug for CapacityError<T>
impl<T> Debug for CapacityError<T>
sourceimpl<T> Display for CapacityError<T>
impl<T> Display for CapacityError<T>
sourceimpl<T: Ord> Ord for CapacityError<T>
impl<T: Ord> Ord for CapacityError<T>
sourceimpl<T: PartialEq> PartialEq<CapacityError<T>> for CapacityError<T>
impl<T: PartialEq> PartialEq<CapacityError<T>> for CapacityError<T>
sourcefn eq(&self, other: &CapacityError<T>) -> bool
fn eq(&self, other: &CapacityError<T>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CapacityError<T>) -> bool
fn ne(&self, other: &CapacityError<T>) -> bool
This method tests for !=
.
sourceimpl<T: PartialOrd> PartialOrd<CapacityError<T>> for CapacityError<T>
impl<T: PartialOrd> PartialOrd<CapacityError<T>> for CapacityError<T>
sourcefn partial_cmp(&self, other: &CapacityError<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &CapacityError<T>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<T: Copy> Copy for CapacityError<T>
impl<T: Eq> Eq for CapacityError<T>
impl<T> StructuralEq for CapacityError<T>
impl<T> StructuralPartialEq for CapacityError<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for CapacityError<T> where
T: RefUnwindSafe,
impl<T> Send for CapacityError<T> where
T: Send,
impl<T> Sync for CapacityError<T> where
T: Sync,
impl<T> Unpin for CapacityError<T> where
T: Unpin,
impl<T> UnwindSafe for CapacityError<T> 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