Trait Operand

Source
pub trait Operand {
    type Kind: OperandType;

    // Required methods
    fn name(&self) -> &str;
    fn optype(&self) -> Self::Kind;

    // Provided method
    fn kind(&self) -> OpKind { ... }
}

Required Associated Types§

Required Methods§

Source

fn name(&self) -> &str

Source

fn optype(&self) -> Self::Kind

Provided Methods§

Source

fn kind(&self) -> OpKind

Trait Implementations§

Source§

impl<K> Operand for Box<dyn Operand<Kind = K>>
where K: OperandType,

Source§

type Kind = K

Source§

fn name(&self) -> &str

Source§

fn optype(&self) -> <Box<dyn Operand<Kind = K>> as Operand>::Kind

Source§

fn kind(&self) -> OpKind

Implementations on Foreign Types§

Source§

impl<K> Operand for Box<dyn Operand<Kind = K>>
where K: OperandType,

Source§

type Kind = K

Source§

fn name(&self) -> &str

Source§

fn optype(&self) -> <Box<dyn Operand<Kind = K>> as Operand>::Kind

Implementors§