#[non_exhaustive]
pub enum Env {
None,
Eabihf,
Gnu,
Gnueabihf,
Msvc,
Musl,
Newlib,
Relibc,
Sgx,
UClibc,
}
Expand description
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 (Non-exhaustive)
This enum is marked as non-exhaustive
None
``: None
Eabihf
eabihf
Gnu
gnu
: The GNU C Library (glibc)
Gnueabihf
gnueabihf
Msvc
msvc
: Microsoft Visual C(++)
Musl
musl
: Clean, efficient, standards-conformant libc implementation.
Newlib
newlib
Relibc
relibc
Sgx
sgx
: Intel Software Guard Extensions (SGX) Enclave
UClibc
uclibc
: C library for developing embedded Linux systems
Implementations
Trait Implementations
sourceimpl Ord for Env
impl Ord for Env
sourceimpl PartialOrd<Env> for Env
impl PartialOrd<Env> for Env
sourcefn partial_cmp(&self, other: &Env) -> Option<Ordering>
fn partial_cmp(&self, other: &Env) -> 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 Copy for Env
impl Eq for Env
impl StructuralEq for Env
impl StructuralPartialEq for Env
Auto Trait Implementations
impl RefUnwindSafe for Env
impl Send for Env
impl Sync for Env
impl Unpin for Env
impl UnwindSafe for Env
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
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.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more