pub enum Instruction<'a> {
Match(Match<'a>),
Call(Call),
Return(Return),
Trampoline(Trampoline),
}Expand description
Decoded instruction from bytecode.
Variants§
Implementations§
Source§impl<'a> Instruction<'a>
impl<'a> Instruction<'a>
Sourcepub fn from_bytes(bytes: &'a [u8]) -> Self
pub fn from_bytes(bytes: &'a [u8]) -> Self
Decode an instruction from bytecode bytes.
Trait Implementations§
Source§impl<'a> Clone for Instruction<'a>
impl<'a> Clone for Instruction<'a>
Source§fn clone(&self) -> Instruction<'a>
fn clone(&self) -> Instruction<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for Instruction<'a>
impl<'a> Debug for Instruction<'a>
impl<'a> Copy for Instruction<'a>
Auto Trait Implementations§
impl<'a> Freeze for Instruction<'a>
impl<'a> RefUnwindSafe for Instruction<'a>
impl<'a> Send for Instruction<'a>
impl<'a> Sync for Instruction<'a>
impl<'a> Unpin for Instruction<'a>
impl<'a> UnwindSafe for Instruction<'a>
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