Trait HasDef

Source
pub trait HasDef: MakeExtensionOp {
    type Def: HasConcrete<Concrete = Self> + FromStr;

    // Provided method
    fn from_op(ext_op: &ExtensionOp) -> Result<Self, OpLoadError>
       where Self: Sized { ... }
}
Expand description

MakeExtensionOp with an associated HasConcrete.

Required Associated Types§

Source

type Def: HasConcrete<Concrete = Self> + FromStr

Associated HasConcrete type.

Provided Methods§

Source

fn from_op(ext_op: &ExtensionOp) -> Result<Self, OpLoadError>
where Self: Sized,

Load the operation from a ExtensionOp.

Implementors§