Expand description
A trait that enum for op definitions that gathers up some shared functionality.
Structs§
- Wrap an MakeExtensionOp with an extension registry to allow type computation. Generate from MakeExtensionOp::to_registered
Enums§
- Error loading operation.
Traits§
- MakeOpDef with an associate concrete Op type which can be instantiated with type arguments.
- MakeExtensionOp with an associated HasConcrete.
- Traits implemented by types which can be loaded from
ExtensionOp
s, i.e. concrete instances ofOpDef
s, with defined type arguments. - Traits implemented by types which can add themselves to
Extension
s asOpDef
s or load themselves from anOpDef
. Particularly useful with C-style enums that implement strum::IntoEnumIterator, as then all definitions can be added to an extension at once. - Trait for operations that can self report the extension ID they belong to and the registry required to compute their types. Allows conversion to
ExtensionOp
Functions§
- Load an MakeOpDef from its name. See strum_macros::EnumString.