pub struct Feature {
name: &'static str,
stability: Status,
version: &'static str,
docs: &'static str,
get: fn(_: &Features) -> bool,
}
Fields§
§name: &'static str
§stability: Status
§version: &'static str
§docs: &'static str
§get: fn(_: &Features) -> bool
Implementations§
source§impl Feature
impl Feature
pub fn test_dummy_stable() -> &'static Feature
pub fn test_dummy_unstable() -> &'static Feature
pub fn alternative_registries() -> &'static Feature
pub fn edition() -> &'static Feature
pub fn rename_dependency() -> &'static Feature
pub fn publish_lockfile() -> &'static Feature
pub fn profile_overrides() -> &'static Feature
pub fn default_run() -> &'static Feature
pub fn metabuild() -> &'static Feature
pub fn public_dependency() -> &'static Feature
pub fn named_profiles() -> &'static Feature
pub fn resolver() -> &'static Feature
pub fn strip() -> &'static Feature
pub fn rust_version() -> &'static Feature
pub fn edition2021() -> &'static Feature
pub fn per_package_target() -> &'static Feature
pub fn codegen_backend() -> &'static Feature
pub fn different_binary_name() -> &'static Feature
pub fn profile_rustflags() -> &'static Feature
pub fn workspace_inheritance() -> &'static Feature
fn is_enabled(&self, features: &Features) -> bool
Auto Trait Implementations§
impl RefUnwindSafe for Feature
impl Send for Feature
impl Sync for Feature
impl Unpin for Feature
impl UnwindSafe for Feature
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: 64 bytes