pub struct Node<'a> {
pub operation: Operation<'a>,
pub inputs: &'a [LinkRef<'a>],
pub outputs: &'a [LinkRef<'a>],
pub params: &'a [TermId],
pub regions: &'a [RegionId],
pub meta: &'a [MetaItem<'a>],
pub signature: Option<TermId>,
}
Expand description
Nodes in the hugr graph.
Fields§
§operation: Operation<'a>
The operation that the node performs.
inputs: &'a [LinkRef<'a>]
The input ports of the node.
outputs: &'a [LinkRef<'a>]
The output ports of the node.
params: &'a [TermId]
The parameters of the node.
regions: &'a [RegionId]
The regions of the node.
meta: &'a [MetaItem<'a>]
The meta information attached to the node.
signature: Option<TermId>
The signature of the node.
Can be None
to indicate that the node’s signature should be inferred,
or for nodes with operations that do not have a signature.
Trait Implementations§
impl<'a> Eq for Node<'a>
impl<'a> StructuralPartialEq for Node<'a>
Auto Trait Implementations§
impl<'a> Freeze for Node<'a>
impl<'a> RefUnwindSafe for Node<'a>
impl<'a> Send for Node<'a>
impl<'a> Sync for Node<'a>
impl<'a> Unpin for Node<'a>
impl<'a> UnwindSafe for Node<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more