pub enum MemoryError {
OutOfMemory,
StackOverflow,
StackUnderflow,
InvalidAddress(usize),
AlignmentError,
PoolExhausted,
InvalidLayout,
}
Expand description
Memory-related errors.
Variants§
OutOfMemory
Out of memory
StackOverflow
Stack overflow detected
StackUnderflow
Stack underflow detected
InvalidAddress(usize)
Invalid memory address
AlignmentError
Memory alignment error
PoolExhausted
Memory pool exhausted
InvalidLayout
Invalid memory layout
Trait Implementations§
Source§impl Clone for MemoryError
impl Clone for MemoryError
Source§fn clone(&self) -> MemoryError
fn clone(&self) -> MemoryError
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 MemoryError
impl Debug for MemoryError
Source§impl Display for MemoryError
impl Display for MemoryError
Source§impl From<MemoryError> for ThreadError
impl From<MemoryError> for ThreadError
Source§fn from(error: MemoryError) -> Self
fn from(error: MemoryError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MemoryError
impl PartialEq for MemoryError
impl Eq for MemoryError
impl StructuralPartialEq for MemoryError
Auto Trait Implementations§
impl Freeze for MemoryError
impl RefUnwindSafe for MemoryError
impl Send for MemoryError
impl Sync for MemoryError
impl Unpin for MemoryError
impl UnwindSafe for MemoryError
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