Module hugr

Source
Expand description

The Hugr data structure, and its basic component handles.

Re-exports§

pub use self::validate::ValidationError;
pub use patch::Patch;
pub use patch::SimpleReplacement;
pub use patch::SimpleReplacementError;
pub use self::views::HugrView;
pub use crate::ops::DEFAULT_OPTYPE;
pub use crate::ops::OpType;

Modules§

hugrmut
Low-level interface for modifying a HUGR.
internal
Internal traits, not exposed in the public hugr API.
patch
Rewrite operations on the HUGR - replacement, outlining, etc.
serialize
Serialization definition for Hugr Hugr: crate::hugr::Hugr
validate
HUGR invariant checks.
views
Read-only access into HUGR graphs and subgraphs.

Structs§

ExtensionError
An error in the extension deltas.
Hugr
The Hugr data structure.
IdentList
A non-empty dot-separated list of valid identifiers
InvalidIdentifier
Error indicating a string was not valid as an IdentList

Enums§

HugrError
Errors that can occur while manipulating a Hugr.

Type Aliases§

NodeMetadata
Arbitrary metadata entry for a node.
NodeMetadataMap
The container of all the metadata entries for a node.