pub enum Error {
ArgumentCount,
ConsExpected,
BytecodeEnd,
BytecodeIntegerMissing,
BytecodeOperandMissing,
IllegalInstruction,
NumberExpected,
OutOfMemory,
ProcedureExpected,
}
Expand description
An error of a virtual machine.
Variants§
ArgumentCount
Mismatched numbers of call arguments and procedure parameters.
ConsExpected
A cons expected.
BytecodeEnd
An unexpected end of bytecodes.
BytecodeIntegerMissing
A missing integer in bytecodes.
BytecodeOperandMissing
A missing operand in bytecodes.
IllegalInstruction
An illegal instruction detected.
NumberExpected
A number expected.
OutOfMemory
Out of memory.
ProcedureExpected
A procedure expected.
Trait Implementations§
source§impl PartialEq for Error
impl PartialEq for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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