snarkvm_synthesizer_program::traits

Trait InstructionTrait

Source
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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§