pub trait InstructionTrait<N: Network>:
Clone
+ PartialEq
+ Eq
+ Parser
+ FromBytes
+ ToBytes
+ Send
+ Sync {
// Required methods
fn destinations(&self) -> Vec<Register<N>>;
fn is_reserved_opcode(name: &str) -> bool;
fn call_operator(&self) -> Option<&CallOperator<N>>;
}Required Methods§
Sourcefn destinations(&self) -> Vec<Register<N>>
fn destinations(&self) -> Vec<Register<N>>
Returns the destination registers of the instruction.
Sourcefn is_reserved_opcode(name: &str) -> bool
fn is_reserved_opcode(name: &str) -> bool
Returns true if the given name is a reserved opcode.
Sourcefn call_operator(&self) -> Option<&CallOperator<N>>
fn call_operator(&self) -> Option<&CallOperator<N>>
Returns the CallOperator if the instruction is a call instruction, otherwise None.
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.