Skip to main content

PackageExt

Trait PackageExt 

Source
pub trait PackageExt {
    // Required methods
    fn each_feature(&self) -> EachFeature<'_> ;
    fn root_directory(&self) -> &Utf8Path;
}
Expand description

Extension methods for cargo_metadata::Package.

Required Methods§

Source

fn each_feature(&self) -> EachFeature<'_>

Returns the iterator over each feature options for the package.

Source

fn root_directory(&self) -> &Utf8Path

Returns the package root directory.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl PackageExt for Package

Implementors§