Struct arraydeque::CapacityError
source · pub struct CapacityError<T = ()> {
pub element: T,
}
Expand description
Error value indicating insufficient capacity
This error only occur to ArrayDeque<_, Saturating>
.
Fields§
§element: T
The element that caused the error.
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> Error for CapacityError<T>
impl<T> Error for CapacityError<T>
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
This method tests for
self
and other
values to be equal, and is used
by ==
.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