Struct cargo::core::resolver::Resolve [] [src]

pub struct Resolve {
    // some fields omitted
}

Represents a fully resolved package dependency graph. Each node in the graph is a package and edges represent dependencies between packages.

Each instance of Resolve also understands the full set of features used for each package as well as what the root package is.

Methods

impl Resolve
[src]

fn copy_metadata(&mut self, other: &Resolve)

fn iter(&self) -> Nodes<PackageId>

fn root(&self) -> &PackageId

fn deps(&self, pkg: &PackageId) -> Deps

fn deps_not_replaced(&self, pkg: &PackageId) -> DepsNotReplaced

fn replacement(&self, pkg: &PackageId) -> Option<&PackageId>

fn replacements(&self) -> &HashMap<PackageIdPackageId>

fn features(&self, pkg: &PackageId) -> Option<&HashSet<String>>

fn query(&self, spec: &str) -> CargoResult<&PackageId>

Trait Implementations

impl Encodable for Resolve
[src]

fn encode<S: Encoder>(&self, s: &mut S) -> Result<(), S::Error>

impl Clone for Resolve
[src]

fn clone(&self) -> Resolve

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Eq for Resolve
[src]

impl PartialEq for Resolve
[src]

fn eq(&self, __arg_0: &Resolve) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Resolve) -> bool

This method tests for !=.

impl Debug for Resolve
[src]

fn fmt(&self, fmt: &mut Formatter) -> Result

Formats the value using the given formatter.