pub struct Features { /* private fields */ }Expand description
Holds the effective set of enabled features.
Implementations§
Source§impl Features
impl Features
Sourcepub fn with_defaults() -> Self
pub fn with_defaults() -> Self
Starts with built-in defaults.
pub fn enabled(&self, feature: Feature) -> bool
pub fn enable(&mut self, feature: Feature) -> &mut Self
pub fn disable(&mut self, feature: Feature) -> &mut Self
pub fn apply_map(&mut self, entries: &BTreeMap<String, bool>)
pub fn enabled_features(&self) -> Vec<Feature>
Trait Implementations§
impl StructuralPartialEq for Features
Auto Trait Implementations§
impl Freeze for Features
impl RefUnwindSafe for Features
impl Send for Features
impl Sync for Features
impl Unpin for Features
impl UnsafeUnpin 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