#[non_exhaustive]pub enum Feature {
AppStorage,
Runtime,
UserDirs,
WorkspaceRoot,
FontRoot,
NativePaths,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
impl Copy for Feature
impl Eq for Feature
Source§impl Feature for Feature
impl Feature for Feature
Source§fn targets(self) -> [Availability; 3]
fn targets(self) -> [Availability; 3]
The feature’s availability on Linux, macOS and the web, in that
order. A host may provide less at run time (no $XDG_RUNTIME_DIR, no
workspace mounted), never more.
Source§fn availability(self) -> Availability
fn availability(self) -> Availability
Whether the feature can be used on this target. A crate whose build
can leave a backend out overrides this to say so.
impl StructuralPartialEq for Feature
Auto Trait Implementations§
impl Forget for Feature
impl Freeze for Feature
impl Move for Feature
impl RefUnwindSafe for Feature
impl Send for Feature
impl Sync for Feature
impl Unpin for Feature
impl UnsafeUnpin 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