Struct clap_cargo::Features [−][src]
#[non_exhaustive]pub struct Features {
pub all_features: bool,
pub no_default_features: bool,
pub features: Vec<String>,
}
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.all_features: bool
Activate all available features
no_default_features: bool
Do not activate the default
feature
features: Vec<String>
Space-separated list of features to activate
Implementations
Forward these flags to the cargo_metadata
crate.
Note: Requires the features cargo_metadata
.
Trait Implementations
Instantiate Self
from ArgMatches
, parsing the arguments as needed. Read more
Assign values from ArgMatches
to self
.
Auto Trait Implementations
impl RefUnwindSafe for Features
impl UnwindSafe for Features
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.