pub enum Os {
Show 49 variants
Aix,
AmdHsa,
Android,
Cuda,
Cygwin,
Dragonfly,
Emscripten,
EspIdf,
FreeBsd,
Fuchsia,
Haiku,
HelenOs,
Hermit,
Horizon,
Hurd,
Illumos,
IOs,
L4Re,
Linux,
LynxOs178,
MacOs,
Managarm,
Motor,
NetBsd,
None,
Nto,
NuttX,
OpenBsd,
Psp,
Psx,
Redox,
Rtems,
Solaris,
SolidAsp3,
TeeOs,
Trusty,
TvOs,
Uefi,
VexOs,
VisionOs,
Vita,
VxWorks,
Wasi,
WatchOs,
Windows,
Xous,
Zkvm,
Unknown,
Other(Cow<'static, str>),
}Variants§
Aix
AmdHsa
Android
Cuda
Cygwin
Dragonfly
Emscripten
EspIdf
FreeBsd
Fuchsia
Haiku
HelenOs
Hermit
Horizon
Hurd
Illumos
IOs
L4Re
Linux
LynxOs178
MacOs
Managarm
Motor
NetBsd
None
Nto
NuttX
OpenBsd
Psp
Psx
Redox
Rtems
Solaris
SolidAsp3
TeeOs
Trusty
TvOs
Uefi
VexOs
VisionOs
Vita
VxWorks
Wasi
WatchOs
Windows
Xous
Zkvm
Unknown
Other(Cow<'static, str>)
The vast majority of the time, the compiler deals with a fixed
set of values, so it is convenient for them to be represented in
an enum. However, it is possible to have arbitrary values in a
target JSON file (which can be parsed when --target is
specified). This might occur, for example, for an out-of-tree
codegen backend that supports a value (e.g. architecture or OS)
that rustc currently doesn’t know about. This variant exists as
an escape hatch for such cases.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Os
impl<'de> Deserialize<'de> for Os
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl JsonSchema for Os
impl JsonSchema for Os
Source§fn json_schema(_: &mut SchemaGenerator) -> Schema
fn json_schema(_: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl Ord for Os
impl Ord for Os
Source§impl PartialOrd for Os
impl PartialOrd for Os
impl Eq for Os
impl StructuralPartialEq for Os
Auto Trait Implementations§
impl DynSend for Os
impl DynSync for Os
impl Freeze for Os
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
Source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes
Size for each variant:
Aix: 0 bytesAmdHsa: 0 bytesAndroid: 0 bytesCuda: 0 bytesCygwin: 0 bytesDragonfly: 0 bytesEmscripten: 0 bytesEspIdf: 0 bytesFreeBsd: 0 bytesFuchsia: 0 bytesHaiku: 0 bytesHelenOs: 0 bytesHermit: 0 bytesHorizon: 0 bytesHurd: 0 bytesIllumos: 0 bytesIOs: 0 bytesL4Re: 0 bytesLinux: 0 bytesLynxOs178: 0 bytesMacOs: 0 bytesManagarm: 0 bytesMotor: 0 bytesNetBsd: 0 bytesNone: 0 bytesNto: 0 bytesNuttX: 0 bytesOpenBsd: 0 bytesPsp: 0 bytesPsx: 0 bytesRedox: 0 bytesRtems: 0 bytesSolaris: 0 bytesSolidAsp3: 0 bytesTeeOs: 0 bytesTrusty: 0 bytesTvOs: 0 bytesUefi: 0 bytesVexOs: 0 bytesVisionOs: 0 bytesVita: 0 bytesVxWorks: 0 bytesWasi: 0 bytesWatchOs: 0 bytesWindows: 0 bytesXous: 0 bytesZkvm: 0 bytesUnknown: 0 bytesOther: 24 bytes