pub struct FeaturesManager(Features);
Expand description
Tuple Fields§
§0: Features
Implementations§
source§impl FeaturesManager
impl FeaturesManager
sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new FeaturesManager
instance
sourcepub fn check_availability(&self, version: Version) -> Result<(), Error>
pub fn check_availability(&self, version: Version) -> Result<(), Error>
Checks that all required Features
are available for the specified
Version
otherwise returns an Error::MissingFeatures
.
Auto Trait Implementations§
impl Freeze for FeaturesManager
impl RefUnwindSafe for FeaturesManager
impl Send for FeaturesManager
impl Sync for FeaturesManager
impl Unpin for FeaturesManager
impl UnwindSafe for FeaturesManager
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