Enum target_tuples::OS
source · #[repr(u32)]pub enum OS {
Show 43 variants
Unknown,
Ananas,
CloudABI,
Darwin,
DragonFly,
FreeBSD,
Fuchsia,
IOS,
KFreeBSD,
Linux,
Lv2,
MacOSX,
NetBSD,
OpenBSD,
Solaris,
Win32,
ZOS,
Haiku,
Minix,
RTEMS,
NaCl,
AIX,
CUDA,
NVCL,
AMDHSA,
PS4,
ELFIAMCU,
TvOS,
WatchOS,
Mesa3D,
Contiki,
AMDPAL,
HermitCore,
Hurd,
WASI,
Emscripten,
PhantomOS,
SNES,
NES,
None,
CleverOS,
AbleOS,
Null,
// some variants omitted
}Expand description
The Operating System Field of a target tuple
Variants§
Unknown
Ananas
CloudABI
Darwin
DragonFly
FreeBSD
Fuchsia
IOS
KFreeBSD
Linux
Lv2
MacOSX
NetBSD
OpenBSD
Solaris
Win32
ZOS
Haiku
Minix
RTEMS
NaCl
AIX
CUDA
NVCL
AMDHSA
PS4
ELFIAMCU
TvOS
WatchOS
Mesa3D
Contiki
AMDPAL
HermitCore
Hurd
WASI
Emscripten
PhantomOS
SNES
NES
None
CleverOS
AbleOS
Null
Implementations§
source§impl OS
impl OS
sourcepub fn parse(s: &str) -> Self
pub fn parse(s: &str) -> Self
Parses the OS in a “lossy” manner
This is equivalent to Self::from_str, except that OS::Unknown is returned, instead of an error, on an unknown OS Field
sourcepub fn canonical_name(&self) -> &'static str
pub fn canonical_name(&self) -> &'static str
Returns the canonical name of the operating system
The canonical name, when passed into [Self::parse`] will yield an equivalent value,
Formatting an OS yields this string
Trait Implementations§
impl Copy for OS
impl Eq for OS
impl StructuralEq for OS
impl StructuralPartialEq for OS
Auto Trait Implementations§
impl RefUnwindSafe for OS
impl Send for OS
impl Sync for OS
impl Unpin for OS
impl UnwindSafe for OS
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