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 = _
pub const cuda: Os = _
pub const dragonfly: Os = _
pub const emscripten: Os = _
pub const espidf: Os = _
pub const freebsd: Os = _
pub const fuchsia: Os = _
pub const haiku: Os = _
pub const hermit: Os = _
pub const horizon: Os = _
pub const illumos: Os = _
pub const ios: Os = _
pub const l4re: Os = _
pub const linux: Os = _
pub const macos: Os = _
pub const netbsd: Os = _
pub const openbsd: Os = _
pub const psp: Os = _
pub const redox: Os = _
pub const solaris: Os = _
pub const solid_asp3: Os = _
pub const tvos: Os = _
pub const uefi: Os = _
pub const unknown: Os = _
pub const vxworks: Os = _
pub const wasi: Os = _
pub const watchos: Os = _
pub const windows: Os = _
pub const xous: Os = _
Trait Implementations
sourceimpl Ord for Os
impl Ord for Os
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
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>
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 moreimpl Eq for Os
impl StructuralEq for Os
impl StructuralPartialEq for Os
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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