Struct cargo::util::DependencyQueue
source · Implementations
sourceimpl<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
sourceimpl<K: Hash + Eq + Clone, V> Default for DependencyQueue<K, V>
impl<K: Hash + Eq + Clone, V> Default for DependencyQueue<K, V>
sourcefn default() -> DependencyQueue<K, V>
fn default() -> DependencyQueue<K, V>
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl<K, V> RefUnwindSafe for DependencyQueue<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for DependencyQueue<K, V>where
K: Send,
V: Send,
impl<K, V> Sync for DependencyQueue<K, V>where
K: Sync,
V: Sync,
impl<K, V> Unpin for DependencyQueue<K, V>where
K: Unpin,
V: Unpin,
impl<K, V> UnwindSafe for DependencyQueue<K, V>where
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more