Struct cargo::util::DependencyQueue [] [src]

pub struct DependencyQueue<K: Eq + Hash, V> { /* fields omitted */ }

Methods

impl<K: Hash + Eq + Clone, V> DependencyQueue<K, V>
[src]

Creates a new dependency queue with 0 packages.

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.

Dequeues a package that is ready to be built.

A package is ready to be built when it has 0 un-built dependencies. If None is returned then no packages are ready to be built.

Returns whether there are remaining packages to be built.

Returns the number of remaining packages to be built.

Indicate that a package has been built.

This function will update the dependency queue with this information, possibly allowing the next invocation of dequeue to return a package.

Trait Implementations

impl<K: Debug + Eq + Hash, V: Debug> Debug for DependencyQueue<K, V>
[src]

Formats the value using the given formatter.