pub struct Net {
pub root: Tree,
pub redexes: Vec<(bool, Tree, Tree)>,
}
Expand description
An AST node representing an interaction net with one free port.
The tree connected to the free port is stored in root
. The active pairs in
the net – trees connected by their roots – are stored in redexes
.
(The wiring connecting the leaves of all the trees is represented within the
trees via pairs of Tree::Var
nodes with the same name.)
Fields§
§root: Tree
§redexes: Vec<(bool, Tree, Tree)>
Implementations§
Trait Implementations§
impl Eq for Net
impl StructuralPartialEq for Net
Auto Trait Implementations§
impl Freeze for Net
impl RefUnwindSafe for Net
impl Send for Net
impl Sync for Net
impl Unpin for Net
impl UnwindSafe for Net
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