pub struct DependencyQueue<K: Eq + Hash, V> { /* private fields */ }Implementations§
Source§impl<K: Hash + Eq + Clone, V> DependencyQueue<K, V>
impl<K: Hash + Eq + Clone, V> DependencyQueue<K, V>
Sourcepub fn new() -> DependencyQueue<K, V>
pub fn new() -> DependencyQueue<K, V>
Creates a new dependency queue with 0 packages.
Sourcepub fn queue(
&mut self,
fresh: Freshness,
key: &K,
value: V,
dependencies: &[K],
) -> &mut V
pub fn queue( &mut self, fresh: Freshness, key: &K, value: V, dependencies: &[K], ) -> &mut V
Adds a new package to this dependency queue.
It is assumed that any dependencies of this package will eventually also be added to the dependency queue.
Sourcepub fn queue_finished(&mut self)
pub fn queue_finished(&mut self)
All nodes have been added, calculate some internal metadata and prepare
for dequeue.
Trait Implementations§
Auto Trait Implementations§
impl<K, V> Freeze for DependencyQueue<K, V>
impl<K, V> RefUnwindSafe for DependencyQueue<K, V>where
HashMap<K, (HashSet<K>, V)>: RefUnwindSafe,
HashMap<K, HashSet<K>>: RefUnwindSafe,
HashSet<K>: RefUnwindSafe,
HashMap<K, usize>: RefUnwindSafe,
impl<K, V> Send for DependencyQueue<K, V>
impl<K, V> Sync for DependencyQueue<K, V>
impl<K, V> Unpin for DependencyQueue<K, V>
impl<K, V> UnsafeUnpin for DependencyQueue<K, V>where
HashMap<K, (HashSet<K>, V)>: UnsafeUnpin,
HashMap<K, HashSet<K>>: UnsafeUnpin,
HashSet<K>: UnsafeUnpin,
HashMap<K, usize>: UnsafeUnpin,
impl<K, V> UnwindSafe for DependencyQueue<K, V>where
HashMap<K, (HashSet<K>, V)>: UnwindSafe,
HashMap<K, HashSet<K>>: UnwindSafe,
HashSet<K>: UnwindSafe,
HashMap<K, usize>: 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