pub enum HeapError {
NullPointer,
InvalidTag(u8),
ZeroSize,
NullCodePtr,
SizeMismatch {
expected_min: u16,
actual: u16,
},
NullField {
index: usize,
},
InvalidFieldTag {
index: usize,
tag: u8,
},
}Expand description
Validation errors for heap objects.
Variants§
NullPointer
InvalidTag(u8)
ZeroSize
NullCodePtr
Closure has null code pointer
SizeMismatch
Size field doesn’t match expected size for the object type
NullField
A field pointer is null
InvalidFieldTag
A field pointer has an invalid heap tag
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HeapError
impl RefUnwindSafe for HeapError
impl Send for HeapError
impl Sync for HeapError
impl Unpin for HeapError
impl UnsafeUnpin for HeapError
impl UnwindSafe for HeapError
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