Expand description
The “operating system” field, which sometimes implies an environment, and sometimes isn’t an actual operating system.
Tuple Fields
0: Cow<'static, str>
Implementations
sourceimpl Os
impl Os
pub const android: Os = Os::new_const("android")
pub const cuda: Os = Os::new_const("cuda")
pub const dragonfly: Os = Os::new_const("dragonfly")
pub const emscripten: Os = Os::new_const("emscripten")
pub const espidf: Os = Os::new_const("espidf")
pub const freebsd: Os = Os::new_const("freebsd")
pub const fuchsia: Os = Os::new_const("fuchsia")
pub const haiku: Os = Os::new_const("haiku")
pub const hermit: Os = Os::new_const("hermit")
pub const horizon: Os = Os::new_const("horizon")
pub const illumos: Os = Os::new_const("illumos")
pub const ios: Os = Os::new_const("ios")
pub const l4re: Os = Os::new_const("l4re")
pub const linux: Os = Os::new_const("linux")
pub const macos: Os = Os::new_const("macos")
pub const netbsd: Os = Os::new_const("netbsd")
pub const openbsd: Os = Os::new_const("openbsd")
pub const psp: Os = Os::new_const("psp")
pub const redox: Os = Os::new_const("redox")
pub const solaris: Os = Os::new_const("solaris")
pub const solid_asp3: Os = Os::new_const("solid_asp3")
pub const tvos: Os = Os::new_const("tvos")
pub const uefi: Os = Os::new_const("uefi")
pub const unknown: Os = Os::new_const("unknown")
pub const vxworks: Os = Os::new_const("vxworks")
pub const wasi: Os = Os::new_const("wasi")
pub const windows: Os = Os::new_const("windows")
Trait Implementations
sourceimpl Ord for Os
impl Ord for Os
sourceimpl PartialOrd<Os> for Os
impl PartialOrd<Os> for Os
sourcefn partial_cmp(&self, other: &Os) -> Option<Ordering>
fn partial_cmp(&self, other: &Os) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Eq for Os
impl StructuralEq for Os
impl StructuralPartialEq for Os
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more