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)>
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<CapacityError<T>> for CapacityError<T>
impl<T: PartialEq> PartialEq<CapacityError<T>> for CapacityError<T>
source§fn eq(&self, other: &CapacityError<T>) -> bool
fn eq(&self, other: &CapacityError<T>) -> bool
source§impl<T: PartialOrd> PartialOrd<CapacityError<T>> for CapacityError<T>
impl<T: PartialOrd> PartialOrd<CapacityError<T>> for CapacityError<T>
source§fn partial_cmp(&self, other: &CapacityError<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &CapacityError<T>) -> Option<Ordering>
1.0.0 · source§fn 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