pub enum AllockedVecError {
AlreadySealed,
Overflow,
CapacityExceeded,
}Expand description
Error type for AllockedVec operations.
Variants§
AlreadySealed
Attempted to reserve capacity on an already-sealed vector.
Overflow
Integer overflow when computing new length.
This error is practically impossible to encounter in normal usage,
as it would require a vector with length approaching isize::MAX.
It exists as a defensive check for integer overflow safety.
CapacityExceeded
Attempted to push beyond the vector’s capacity.
Trait Implementations§
Source§impl Debug for AllockedVecError
impl Debug for AllockedVecError
Source§impl Display for AllockedVecError
impl Display for AllockedVecError
Source§impl Error for AllockedVecError
impl Error for AllockedVecError
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 AllockedVecError
impl PartialEq for AllockedVecError
impl Eq for AllockedVecError
impl StructuralPartialEq for AllockedVecError
Auto Trait Implementations§
impl Freeze for AllockedVecError
impl RefUnwindSafe for AllockedVecError
impl Send for AllockedVecError
impl Sync for AllockedVecError
impl Unpin for AllockedVecError
impl UnwindSafe for AllockedVecError
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