Enum passerine::common::opcode::Opcode [−][src]
This enum represents a single opcode. Under the hood, it’s just a byte. This allows non opcode bytes to be inserted in bytecode streams.
Variants
Load a constant.
Load uninitialized Data.
Delete a value off the stack.
Calls out to a Rust function via FFI
Copies topmost value on the stack.
Moves a variable onto the heap.
Save a constant into a variable.
Save a value to a captured variable.
Push a copy of a variable onto the stack.
Load a copy of a captured variable.
Call a function.
Return from a function.
Creates a closure over the current local environment.
Prints a value.
Constructs a label.
Destructures atomic data by asserting it matches exactly.
Destructures a label.
Sestructures a tuple.
Implementations
impl Opcode
[src]
pub fn from_byte(byte: u8) -> Opcode
[src]
Convert a raw byte to an opcode. Note that non-opcode bytes should never be interpreted as an opcode. Under the hood, this is just a transmute, so the regular cautions apply. This should never cause a crash and if it does, the vm’s designed to crash hard so it’ll be pretty obvious.
Trait Implementations
impl Debug for Opcode
[src]
impl Eq for Opcode
[src]
impl PartialEq<Opcode> for Opcode
[src]
impl StructuralEq for Opcode
[src]
impl StructuralPartialEq for Opcode
[src]
Auto Trait Implementations
impl RefUnwindSafe for Opcode
impl Send for Opcode
impl Sync for Opcode
impl Unpin for Opcode
impl UnwindSafe for Opcode
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,