pub enum ErrorCode {
AllocError,
MemLayoutError,
CapacityOverflow,
}Expand description
Error codes for memory allocation and capacity management operations.
These error codes are used to indicate various failure conditions when attempting to allocate or manage memory for collections.
§Examples
let error = ErrorCode::AllocError;
// Handle allocation error appropriatelyVariants§
AllocError
Memory allocation failed
MemLayoutError
Memory layout computation failed
CapacityOverflow
Capacity overflow (requested capacity too large)
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
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