pub struct Features {Show 23 fields
test_dummy_stable: bool,
test_dummy_unstable: bool,
alternative_registries: bool,
edition: bool,
rename_dependency: bool,
publish_lockfile: bool,
profile_overrides: bool,
default_run: bool,
metabuild: bool,
public_dependency: bool,
named_profiles: bool,
resolver: bool,
strip: bool,
rust_version: bool,
edition2021: bool,
per_package_target: bool,
codegen_backend: bool,
different_binary_name: bool,
profile_rustflags: bool,
workspace_inheritance: bool,
activated: Vec<String>,
nightly_features_allowed: bool,
is_local: bool,
}
Fields§
§test_dummy_stable: bool
§test_dummy_unstable: bool
§alternative_registries: bool
§edition: bool
§rename_dependency: bool
§publish_lockfile: bool
§profile_overrides: bool
§default_run: bool
§metabuild: bool
§public_dependency: bool
§named_profiles: bool
§resolver: bool
§strip: bool
§rust_version: bool
§edition2021: bool
§per_package_target: bool
§codegen_backend: bool
§different_binary_name: bool
§profile_rustflags: bool
§workspace_inheritance: bool
§activated: Vec<String>
§nightly_features_allowed: bool
§is_local: bool
Implementations§
source§impl Features
impl Features
pub fn new( features: &[String], config: &Config, warnings: &mut Vec<String>, is_local: bool ) -> CargoResult<Features>
fn add( &mut self, feature_name: &str, config: &Config, warnings: &mut Vec<String> ) -> CargoResult<()>
pub fn activated(&self) -> &[String]
pub fn require(&self, feature: &Feature) -> CargoResult<()>
pub fn is_enabled(&self, feature: &Feature) -> bool
Trait Implementations§
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 48 bytes