Struct guppy::graph::feature::feature_list::FeatureList [−][src]
pub struct FeatureList<'g> { /* fields omitted */ }
Expand description
A sorted, deduplicated list of features from a single package.
This provides a convenient way to query and print out lists of features.
Returned by methods on FeatureSet
.
Implementations
pub fn new(
package: PackageMetadata<'g>,
features: impl IntoIterator<Item = Option<&'g str>>
) -> Self
pub fn new(
package: PackageMetadata<'g>,
features: impl IntoIterator<Item = Option<&'g str>>
) -> Self
Creates a new FeatureList
from a package and an iterator over features.
Returns the package corresponding to this feature list.
Returns true if this feature list contains this feature.
Returns true if this feature list contains the “base” feature.
The “base” feature represents the package with no features enabled.
Returns the list of features as a slice.
This slice is guaranteed to be sorted and unique.
Returns a borrowed iterator over feature IDs.
Returns a pretty-printer over the list of features.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<'g> RefUnwindSafe for FeatureList<'g>
impl<'g> Send for FeatureList<'g>
impl<'g> Sync for FeatureList<'g>
impl<'g> Unpin for FeatureList<'g>
impl<'g> UnwindSafe for FeatureList<'g>
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.