Trait bus_mapping::operation::Op

source ·
pub trait Op: Clone + Eq + Ord {
    // Required methods
    fn into_enum(self) -> OpEnum;
    fn reverse(&self) -> Self;
}
Expand description

Trait used for Operation Kinds.

Required Methods§

source

fn into_enum(self) -> OpEnum

Turn the Generic Op into an OpEnum so that we can match it into a particular Operation Kind.

source

fn reverse(&self) -> Self

Return a copy of the operation reversed.

Object Safety§

This trait is not object safe.

Implementors§