Enum docs::immix::errors::AllocError
source · pub enum AllocError {
OutOfMemory,
SizeTooBig,
InternalError(BlockError),
}Variants§
OutOfMemory
Cannot allocate memory
SizeTooBig
Size is too big to allocate
InternalError(BlockError)
Wrapper for block error
Trait Implementations§
source§impl Clone for AllocError
impl Clone for AllocError
source§fn clone(&self) -> AllocError
fn clone(&self) -> AllocError
Returns a copy 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 AllocError
impl Debug for AllocError
source§impl From<AllocError> for ImmixError
impl From<AllocError> for ImmixError
source§fn from(value: AllocError) -> Self
fn from(value: AllocError) -> Self
Converts to this type from the input type.
source§impl From<BlockError> for AllocError
impl From<BlockError> for AllocError
source§fn from(value: BlockError) -> Self
fn from(value: BlockError) -> Self
Converts to this type from the input type.
source§impl From<SizeClassError> for AllocError
impl From<SizeClassError> for AllocError
source§fn from(value: SizeClassError) -> Self
fn from(value: SizeClassError) -> Self
Converts to this type from the input type.
source§impl PartialEq for AllocError
impl PartialEq for AllocError
source§fn eq(&self, other: &AllocError) -> bool
fn eq(&self, other: &AllocError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AllocError
Auto Trait Implementations§
impl Freeze for AllocError
impl RefUnwindSafe for AllocError
impl Send for AllocError
impl Sync for AllocError
impl Unpin for AllocError
impl UnwindSafe for AllocError
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