Struct radicle_dag::Node
source · pub struct Node<K, V> {
pub key: K,
pub value: V,
pub dependencies: BTreeSet<K>,
pub dependents: BTreeSet<K>,
}
Expand description
A node in the graph.
Fields§
§key: K
The node key.
value: V
The node value, stored by the user.
dependencies: BTreeSet<K>
Nodes depended on.
dependents: BTreeSet<K>
Nodes depending on this node.
Trait Implementations§
source§impl<K: PartialEq, V: PartialEq> PartialEq for Node<K, V>
impl<K: PartialEq, V: PartialEq> PartialEq for Node<K, V>
impl<K: Eq, V: Eq> Eq for Node<K, V>
impl<K, V> StructuralPartialEq for Node<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for Node<K, V>
impl<K, V> RefUnwindSafe for Node<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for Node<K, V>
impl<K, V> Sync for Node<K, V>
impl<K, V> Unpin for Node<K, V>
impl<K, V> UnwindSafe for Node<K, V>
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