pub trait InstructionTrait<N: Network>: Clone + Parser + FromBytes + ToBytes {
    // Required methods
    fn destinations(&self) -> Vec<Register<N>>;
    fn is_reserved_opcode(name: &str) -> bool;
}

Required Methods§

source

fn destinations(&self) -> Vec<Register<N>>

Returns the destination registers of the instruction.

source

fn is_reserved_opcode(name: &str) -> bool

Returns true if the given name is a reserved opcode.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<N: Network> InstructionTrait<N> for Instruction<N>