Trait hugr_core::ops::dataflow::DataflowOpTrait
source · pub trait DataflowOpTrait {
const TAG: OpTag;
// Required methods
fn description(&self) -> &str;
fn signature(&self) -> Signature;
// Provided methods
fn other_input(&self) -> Option<EdgeKind> { ... }
fn other_output(&self) -> Option<EdgeKind> { ... }
fn static_input(&self) -> Option<EdgeKind> { ... }
}
Expand description
Trait implemented by all dataflow operations.
Required Associated Constants§
Required Methods§
sourcefn description(&self) -> &str
fn description(&self) -> &str
A human-readable description of the operation.
Provided Methods§
sourcefn other_input(&self) -> Option<EdgeKind>
fn other_input(&self) -> Option<EdgeKind>
The edge kind for the non-dataflow or constant inputs of the operation, not described by the signature.
If not None, a single extra output multiport of that kind will be present.
sourcefn other_output(&self) -> Option<EdgeKind>
fn other_output(&self) -> Option<EdgeKind>
The edge kind for the non-dataflow outputs of the operation, not described by the signature.
If not None, a single extra output multiport of that kind will be present.
sourcefn static_input(&self) -> Option<EdgeKind>
fn static_input(&self) -> Option<EdgeKind>
The edge kind for a single constant input of the operation, not described by the dataflow signature.
If not None, an extra input port of that kind will be present after the
dataflow input ports and before any DataflowOpTrait::other_input
ports.
Object Safety§
This trait is not object safe.