Expand description
Definitions for the core types used in the Hugr.
These types are re-exported in the root of the crate.
Structs§
- Incoming
Port - A port in the incoming direction.
- Node
- A handle to a node in the HUGR.
- Outgoing
Port - A port in the outgoing direction.
- Port
- A handle to a port for a node in the HUGR.
- Wire
- A
DataFlow
wire, defined by a Value-kind output port of a node
Enums§
- Circuit
Unit - Enum for uniquely identifying the origin of linear wires in a circuit-like dataflow region.
- Either
- The enum
Either
with variantsLeft
andRight
is a general purpose sum type with two cases. - Visibility
- Marks FuncDefns and FuncDecls as to whether they should be considered for linking.
Traits§
- Hugr
Node - A trait for nodes in the Hugr.
- Node
Index - A trait for getting the index of a node.
- Port
Index - A trait for getting the undirected index of a port.
Type Aliases§
- Direction
- The direction of a port.