Struct clap_cargo::Features
source · #[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§
source§impl Features
impl Features
sourcepub fn forward_metadata<'m>(
&self,
meta: &'m mut MetadataCommand
) -> &'m mut MetadataCommand
Available on crate feature cargo_metadata
only.
pub fn forward_metadata<'m>( &self, meta: &'m mut MetadataCommand ) -> &'m mut MetadataCommand
cargo_metadata
only.Forward these flags to the cargo_metadata
crate.
Note: Requires the features cargo_metadata
.
Trait Implementations§
source§impl Args for Features
impl Args for Features
source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id
][crate::ArgGroup::id] for this set of argumentssource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
source§impl FromArgMatches for Features
impl FromArgMatches for Features
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.source§impl PartialEq<Features> for Features
impl PartialEq<Features> for Features
impl Eq for Features
impl StructuralEq for Features
impl StructuralPartialEq for Features
Auto Trait Implementations§
impl RefUnwindSafe for Features
impl Send for Features
impl Sync for Features
impl Unpin for Features
impl UnwindSafe for Features
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more