pub struct CapacityError {
pub len: usize,
pub capacity: usize,
}Expand description
Error returned when converting into a fixed-capacity deque would exceed capacity.
Fields§
§len: usizeNumber of elements provided by the input collection.
capacity: usizeMaximum capacity of the target deque.
Trait Implementations§
Source§impl Clone for CapacityError
impl Clone for CapacityError
Source§fn clone(&self) -> CapacityError
fn clone(&self) -> CapacityError
Returns a duplicate 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 Debug for CapacityError
impl Debug for CapacityError
Source§impl Display for CapacityError
impl Display for CapacityError
Source§impl Error for CapacityError
Available on crate feature std only.
impl Error for CapacityError
Available on crate feature
std only.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 PartialEq for CapacityError
impl PartialEq for CapacityError
impl Copy for CapacityError
impl Eq for CapacityError
impl StructuralPartialEq for CapacityError
Auto Trait Implementations§
impl Freeze for CapacityError
impl RefUnwindSafe for CapacityError
impl Send for CapacityError
impl Sync for CapacityError
impl Unpin for CapacityError
impl UnsafeUnpin for CapacityError
impl UnwindSafe for CapacityError
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