pub struct Var<O, A> {
pub state: Rc<RefCell<OpenHypergraph<O, A>>>,
pub edge_id: EdgeId,
pub label: O,
}
Fields§
§state: Rc<RefCell<OpenHypergraph<O, A>>>
§edge_id: EdgeId
§label: O
Implementations§
Source§impl<O: Clone, A: HasVar> Var<O, A>
Vars can be created when the set of edge labels has a ‘Copy’ operation.
impl<O: Clone, A: HasVar> Var<O, A>
Vars can be created when the set of edge labels has a ‘Copy’ operation.
pub fn new( state: Rc<RefCell<OpenHypergraph<O, A>>>, default_node_label: O, ) -> Self
Sourcepub fn new_source(&self) -> NodeId
pub fn new_source(&self) -> NodeId
Create a new source node of this Var
Sourcepub fn new_target(&self) -> NodeId
pub fn new_target(&self) -> NodeId
Create a new target node of this Var
Trait Implementations§
Auto Trait Implementations§
impl<O, A> Freeze for Var<O, A>where
O: Freeze,
impl<O, A> !RefUnwindSafe for Var<O, A>
impl<O, A> !Send for Var<O, A>
impl<O, A> !Sync for Var<O, A>
impl<O, A> Unpin for Var<O, A>where
O: Unpin,
impl<O, A> !UnwindSafe for Var<O, 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