Module core

Source
Expand description

Definitions for the core types used in the Hugr.

These types are re-exported in the root of the crate.

Structs§

IncomingPort
A port in the incoming direction.
Node
A handle to a node in the HUGR.
OutgoingPort
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§

CircuitUnit
Enum for uniquely identifying the origin of linear wires in a circuit-like dataflow region.
Either
The enum Either with variants Left and Right is a general purpose sum type with two cases.

Traits§

NodeIndex
A trait for getting the index of a node.
PortIndex
A trait for getting the undirected index of a port.

Type Aliases§

Direction
The direction of a port.