Module hugr_core::extension::simple_op

source ·
Expand description

A trait that enum for op definitions that gathers up some shared functionality.

Structs§

Enums§

Traits§

  • Traits implemented by types which can be loaded from ExtensionOps, i.e. concrete instances of OpDefs, with defined type arguments.
  • Traits implemented by types which can add themselves to Extensions as OpDefs or load themselves from an OpDef. 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§