#[non_exhaustive]pub enum Family {
Unix,
Windows,
Wasm,
Other(String),
}
Expand description
A more generic description of a target, such as the family of the operating systems or architectures that the target generally falls into.
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.
Unix
Unix based operating systems
unix
Windows
Microsoft’s Windows operating system
windows
Wasm
WebAssembly
wasm
Other(String)
Unknown value
Implementations§
Trait Implementations§
Source§impl Ord for Family
impl Ord for Family
Source§impl PartialOrd for Family
impl PartialOrd for Family
impl Eq for Family
impl StructuralPartialEq for Family
Auto Trait Implementations§
impl Freeze for Family
impl RefUnwindSafe for Family
impl Send for Family
impl Sync for Family
impl Unpin for Family
impl UnwindSafe for Family
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