Enum platforms::target::Env[][src]

pub enum Env {
    GNU,
    MSVC,
    Musl,
    uClibc,
    Unknown,
}

target_env: Target enviroment that disambiguates the target platform by ABI / libc. This value is closely related to the fourth element of the platform target triple, though it is not identical. For example, embedded ABIs such as gnueabihf will simply define target_env as "gnu" (i.e. target::Env::GNU)

Variants

gnu: The GNU C Library (glibc)

msvc: Microsoft Visual C(++)

musl: Clean, efficient, standards-conformant libc implementation.

uclibc: C library for developing embedded Linux systems

Unknown target environment

Methods

impl Env
[src]

String representing this environment which matches #[cfg(target_env)]

Trait Implementations

impl Copy for Env
[src]

impl Clone for Env
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Env
[src]

Formats the value using the given formatter. Read more

impl Eq for Env
[src]

impl Hash for Env
[src]

Feeds this value into the given [Hasher]. Read more

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

impl PartialEq for Env
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd for Env
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for Env
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl FromStr for Env
[src]

The associated error which can be returned from parsing.

Create a new Env from the given string

Auto Trait Implementations

impl Send for Env

impl Sync for Env