pub type NodeHashMap<T, const N: usize, Id> = HashMap<Id, Node<T, N>>;
Expand description
Collection of nodes for the layout, stored in a HashMap
Aliased Type§
pub struct NodeHashMap<T, const N: usize, Id> { /* private fields */ }
Trait Implementations§
Source§impl<T: Clone, const N: usize, Id: Eq + Hash> BuildableNodes<T, N, Id> for NodeHashMap<T, N, Id>
impl<T: Clone, const N: usize, Id: Eq + Hash> BuildableNodes<T, N, Id> for NodeHashMap<T, N, Id>
Source§impl<T: Clone, const N: usize, Id: Eq + Hash> Nodes<T, N, Id> for NodeHashMap<T, N, Id>
impl<T: Clone, const N: usize, Id: Eq + Hash> Nodes<T, N, Id> for NodeHashMap<T, N, Id>
Source§fn iter_nodes<'a>(&'a self) -> impl Iterator<Item = &'a Node<T, N>>where
T: 'a,
fn iter_nodes<'a>(&'a self) -> impl Iterator<Item = &'a Node<T, N>>where
T: 'a,
Create an iterator through the nodes
Source§fn iter_nodes_mut<'a>(&'a mut self) -> impl Iterator<Item = &'a mut Node<T, N>>where
T: 'a,
fn iter_nodes_mut<'a>(&'a mut self) -> impl Iterator<Item = &'a mut Node<T, N>>where
T: 'a,
Create a mutable iterator through the nodes
Source§fn par_iter_nodes_mut<'a>(
&'a mut self,
) -> impl ParallelIterator<Item = &'a mut Node<T, N>>
fn par_iter_nodes_mut<'a>( &'a mut self, ) -> impl ParallelIterator<Item = &'a mut Node<T, N>>
Create a mutable parallel iterator through the nodes