InstructionDecoderCollection

Trait InstructionDecoderCollection 

Source
pub trait InstructionDecoderCollection:
    Clone
    + Debug
    + Send
    + Sync
    + Eq
    + Hash
    + Serialize
    + 'static {
    type InstructionType: Clone + Debug + PartialEq + Eq + Send + Sync + 'static;

    // Required methods
    fn parse_instruction(
        instruction: &Instruction,
    ) -> Option<DecodedInstruction<Self>>;
    fn get_type(&self) -> Self::InstructionType;
}
Expand description

A set of instruction decoders used to parse nested instructions.

Implementors typically enumerate all supported instruction variants for a given program and provide a way to parse and tag them with a type.

Required Associated Types§

Required Methods§

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§