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§
Sourcetype Def: HasConcrete<Concrete = Self> + FromStr
type Def: HasConcrete<Concrete = Self> + FromStr
Associated HasConcrete type.
Provided Methods§
Sourcefn from_op(ext_op: &ExtensionOp) -> Result<Self, OpLoadError>where
Self: Sized,
fn from_op(ext_op: &ExtensionOp) -> Result<Self, OpLoadError>where
Self: Sized,
Load the operation from a ExtensionOp.