Enum docs::bytecode_vm::bytecode::errors::InstructionsError
source · pub enum InstructionsError {
AllocationFailed(Layout),
TooLargeToAllocate,
CannotRead {
offset: usize,
},
}Variants§
AllocationFailed(Layout)
memory allocation have failed
TooLargeToAllocate
alloc size > isize::MAX
CannotRead
cannot read instruction at offset
Trait Implementations§
source§impl Debug for InstructionsError
impl Debug for InstructionsError
source§impl From<InstructionsError> for BytecodeError
impl From<InstructionsError> for BytecodeError
source§fn from(err: InstructionsError) -> Self
fn from(err: InstructionsError) -> Self
Converts to this type from the input type.
source§impl From<InstructionsError> for FrameError
impl From<InstructionsError> for FrameError
source§fn from(err: InstructionsError) -> Self
fn from(err: InstructionsError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InstructionsError
impl RefUnwindSafe for InstructionsError
impl Send for InstructionsError
impl Sync for InstructionsError
impl Unpin for InstructionsError
impl UnwindSafe for InstructionsError
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