pub struct Node<V> {
pub value: V,
pub children: Vec<usize>,
pub parents: Vec<usize>,
}Expand description
A node in the DAG. Carries a boxed trait object and a list of children.
Fields§
§value: VThis node’s payload.
children: Vec<usize>Indices of this node’s children in the owning Dag.
parents: Vec<usize>Indices of this node’s parents in the owning Dag.
Auto Trait Implementations§
impl<V> Freeze for Node<V>where
V: Freeze,
impl<V> RefUnwindSafe for Node<V>where
V: RefUnwindSafe,
impl<V> Send for Node<V>where
V: Send,
impl<V> Sync for Node<V>where
V: Sync,
impl<V> Unpin for Node<V>where
V: Unpin,
impl<V> UnsafeUnpin for Node<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for Node<V>where
V: UnwindSafe,
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