Struct arrayvec::CapacityError
source · pub struct CapacityError<T = ()> { /* private fields */ }
Expand description
Error value indicating insufficient capacity
Implementations§
source§impl<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§
source§impl<T: Clone> Clone for CapacityError<T>
impl<T: Clone> Clone for CapacityError<T>
source§fn clone(&self) -> CapacityError<T>
fn clone(&self) -> CapacityError<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T> Debug for CapacityError<T>
impl<T> Debug for CapacityError<T>
source§impl<T> Display for CapacityError<T>
impl<T> Display for CapacityError<T>
source§impl<T: Any> Error for CapacityError<T>
impl<T: Any> Error for CapacityError<T>
Requires features="std"
.
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl<T: Ord> Ord for CapacityError<T>
impl<T: Ord> Ord for CapacityError<T>
source§fn cmp(&self, other: &CapacityError<T>) -> Ordering
fn cmp(&self, other: &CapacityError<T>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<T: PartialEq> PartialEq for CapacityError<T>
impl<T: PartialEq> PartialEq for CapacityError<T>
source§impl<T: PartialOrd> PartialOrd for CapacityError<T>
impl<T: PartialOrd> PartialOrd for CapacityError<T>
impl<T: Copy> Copy for CapacityError<T>
impl<T: Eq> Eq for CapacityError<T>
impl<T> StructuralPartialEq for CapacityError<T>
Auto Trait Implementations§
impl<T> Freeze for CapacityError<T>where
T: Freeze,
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)