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§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: Ord> Ord for CapacityError<T>
impl<T: Ord> Ord for CapacityError<T>
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>
Source§fn partial_cmp(&self, other: &CapacityError<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &CapacityError<T>) -> Option<Ordering>
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§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)