pub struct CapacityOverflow;
Expand description
TODO
Note: This error is no longer returned by any public part of the API, but it is thrown during panics. This is because a capacity overflow has such a small chance of occuring that it isn’t worth handling in most placed. Most machines wouldn’t have enough memory to overflow a non-ZST collection with a u64 length.
Trait Implementations§
Source§impl Debug for CapacityOverflow
impl Debug for CapacityOverflow
Source§impl Display for CapacityOverflow
impl Display for CapacityOverflow
Source§impl Error for CapacityOverflow
impl Error for CapacityOverflow
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()
Auto Trait Implementations§
impl Freeze for CapacityOverflow
impl RefUnwindSafe for CapacityOverflow
impl Send for CapacityOverflow
impl Sync for CapacityOverflow
impl Unpin for CapacityOverflow
impl UnwindSafe for CapacityOverflow
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