Trait zydis::Operands

source ·
pub trait Operands {
    // Required methods
    fn decode(
        decoder: &Decoder,
        ctx: &DecoderContext,
        insn: &DecodedInstruction
    ) -> Self;
    fn operands(&self) -> &[DecodedOperand];
}
Expand description

Defines storage and decoding behavior for operands.

Required Methods§

source

fn decode( decoder: &Decoder, ctx: &DecoderContext, insn: &DecodedInstruction ) -> Self

source

fn operands(&self) -> &[DecodedOperand]

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Operands for NoOperands

source§

impl<const MAX_OPERANDS: usize> Operands for OperandArrayVec<MAX_OPERANDS>