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 windows: Os
sourceimpl Os
impl Os
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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub 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