[][src]Enum target_lexicon::OperatingSystem

pub enum OperatingSystem {
    Unknown,
    AmdHsa,
    Bitrig,
    Cloudabi,
    Cuda,
    Darwin,
    Dragonfly,
    Emscripten,
    Freebsd,
    Fuchsia,
    Haiku,
    Hermit,
    Ios,
    L4re,
    Linux,
    MacOSX {
        major: u16,
        minor: u16,
        patch: u16,
    },
    Nebulet,
    Netbsd,
    None_,
    Openbsd,
    Redox,
    Solaris,
    Uefi,
    VxWorks,
    Wasi,
    Windows,
}

The "operating system" field, which sometimes implies an environment, and sometimes isn't an actual operating system.

Variants

UnknownAmdHsaBitrigCloudabiCudaDarwinDragonflyEmscriptenFreebsdFuchsiaHaikuHermitIosL4reLinuxMacOSX

Fields of MacOSX

major: u16minor: u16patch: u16
NebuletNetbsdNone_OpenbsdRedoxSolarisUefiVxWorksWasiWindows

Methods

impl OperatingSystem[src]

pub const fn host() -> Self[src]

Return the operating system for the current host.

Trait Implementations

impl Display for OperatingSystem[src]

impl Debug for OperatingSystem[src]

impl PartialEq<OperatingSystem> for OperatingSystem[src]

impl Eq for OperatingSystem[src]

impl FromStr for OperatingSystem[src]

type Err = ()

The associated error which can be returned from parsing.

impl Hash for OperatingSystem[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Copy for OperatingSystem[src]

impl Clone for OperatingSystem[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for OperatingSystem[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]