pub struct Os(pub Cow<'static, str>);
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§
source§impl 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 = _
Trait Implementations§
source§impl Ord for Os
impl Ord for Os
source§impl PartialOrd<Os> for Os
impl PartialOrd<Os> for Os
1.0.0 · source§fn 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§
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