ExtensionValue#
- class hugr.ext.ExtensionValue(name: str, val: Value)[source]#
Bases:
ExtensionObject
A value defined in an
Extension
.Methods
Retrieve the extension associated with the object.
Attributes
- get_extension() Extension #
Retrieve the extension associated with the object.
- Returns:
The extension associated with the object.
- Raises:
NoParentExtension – If the object is not associated with an extension.