Module hugr_core::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§

  • A port in the incoming direction.
  • A handle to a node in the HUGR.
  • A port in the outgoing direction.
  • A handle to a port for a node in the HUGR.
  • A DataFlow wire, defined by a Value-kind output port of a node

Enums§

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

Traits§

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

Type Aliases§