Struct guppy::graph::PackageQuery[][src]

pub struct PackageQuery<'g> { /* fields omitted */ }
Expand description

A query over a package graph.

This is the entry point for iterators over IDs and dependency links, and dot graph presentation. A PackageQuery is constructed through the query_ methods on PackageGraph.

Implementations

Returns the package graph on which the query is going to be executed.

Returns the direction the query is happening in.

Returns the list of initial packages specified in the query.

The order of packages is unspecified.

Returns true if the query starts from the given package ID.

Returns an error if this package ID is unknown.

Converts this PackageQuery into a FeatureQuery, using the given feature filter.

This will cause the feature graph to be constructed if it hasn’t been done so already.

Resolves this query into a set of known packages, following every link found along the way.

This is the entry point for iterators.

Resolves this query into a set of known packages, using the provided resolver to determine which links are followed.

Resolves this query into a set of known packages, using the provided resolver function to determine which links are followed.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.