pub struct Region<'a> {
pub kind: RegionKind,
pub sources: &'a [LinkRef<'a>],
pub targets: &'a [LinkRef<'a>],
pub children: &'a [NodeId],
pub meta: &'a [MetaItem<'a>],
pub signature: Option<TermId>,
}
Expand description
A region in the hugr.
Fields§
§kind: RegionKind
The kind of the region. See RegionKind
for details.
sources: &'a [LinkRef<'a>]
The source ports of the region.
targets: &'a [LinkRef<'a>]
The target ports of the region.
children: &'a [NodeId]
The nodes in the region. The order of the nodes is not significant.
meta: &'a [MetaItem<'a>]
The metadata attached to the region.
signature: Option<TermId>
The signature of the region.
Can be None
to indicate that the region signature should be inferred.
Trait Implementations§
impl<'a> Eq for Region<'a>
impl<'a> StructuralPartialEq for Region<'a>
Auto Trait Implementations§
impl<'a> Freeze for Region<'a>
impl<'a> RefUnwindSafe for Region<'a>
impl<'a> Send for Region<'a>
impl<'a> Sync for Region<'a>
impl<'a> Unpin for Region<'a>
impl<'a> UnwindSafe for Region<'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