pub struct Instruction<O: Opcode> {
pub opcode: O,
pub arg: Option<u16>,
}
Fields§
§opcode: O
§arg: Option<u16>
Implementations§
Source§impl<O: Opcode> Instruction<O>
impl<O: Opcode> Instruction<O>
Source§impl<O: Opcode<Mnemonic = Mnemonic>> Instruction<O>
impl<O: Opcode<Mnemonic = Mnemonic>> Instruction<O>
Sourcepub fn stack_adjustment_after(&self) -> isize
pub fn stack_adjustment_after(&self) -> isize
How the stack adjusts after this instruction executes. A positive number indicates that N elements were pushed to the stack while a negative number indicates the number of elements removed from the stack
Trait Implementations§
Source§impl<O: Clone + Opcode> Clone for Instruction<O>
impl<O: Clone + Opcode> Clone for Instruction<O>
Source§fn clone(&self) -> Instruction<O>
fn clone(&self) -> Instruction<O>
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 moreimpl<O: Eq + Opcode> Eq for Instruction<O>
impl<O: Opcode> StructuralPartialEq for Instruction<O>
Auto Trait Implementations§
impl<O> Freeze for Instruction<O>where
O: Freeze,
impl<O> RefUnwindSafe for Instruction<O>where
O: RefUnwindSafe,
impl<O> Send for Instruction<O>
impl<O> Sync for Instruction<O>
impl<O> Unpin for Instruction<O>where
O: Unpin,
impl<O> UnwindSafe for Instruction<O>where
O: UnwindSafe,
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