pub enum MemoryError {
OutOfBounds {
requested: usize,
memory_len: usize,
},
CannotFree {
trying_to_free: usize,
memory_len: usize,
},
}
Expand description
Represents an error occurring during a memory operation.
Variants§
OutOfBounds
A memory operation requested a position out of valid (allocated) memory.
CannotFree
Requested to free more memory than allocated.
Trait Implementations§
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