Enum target_tuples::Environment
source · #[repr(u32)]pub enum Environment {
Show 23 variants
Unknown = 0,
GNU = 1,
GNUABIN32 = 2,
GNUABI64 = 3,
GNUEABI = 4,
GNUEABIHF = 5,
GNUX32 = 6,
CODE16 = 7,
EABI = 8,
EABIHF = 9,
Android = 10,
Musl = 11,
MuslEABI = 12,
MuslEABIHF = 13,
MSVC = 15,
Itanium = 16,
Cygnus = 17,
CoreCLR = 18,
Simulator = 19,
MacABI = 20,
PhantomStandard = 21,
PhantomKernel = 22,
Null = 4_294_967_295,
// some variants omitted
}
Expand description
The Environment field of target tuples
Variants§
Unknown = 0
GNU = 1
GNUABIN32 = 2
GNUABI64 = 3
GNUEABI = 4
GNUEABIHF = 5
GNUX32 = 6
CODE16 = 7
EABI = 8
EABIHF = 9
Android = 10
Musl = 11
MuslEABI = 12
MuslEABIHF = 13
MSVC = 15
Itanium = 16
Cygnus = 17
CoreCLR = 18
Simulator = 19
MacABI = 20
PhantomStandard = 21
PhantomKernel = 22
Null = 4_294_967_295
Implementations§
source§impl Environment
impl Environment
sourcepub fn parse(s: &str) -> Self
pub fn parse(s: &str) -> Self
Parses the Environment name in a “lossy” manner
This is equivalent to Self::from_str
, except that Environment::Unknown
is returned, instead of an error, on an unknown OS Field
sourcepub fn canonical_name(&self) -> &'static str
pub fn canonical_name(&self) -> &'static str
Returns the canonical name of the environment
The canonical name, when passed into Self::parse
will yield an equivalent value,
Formatting an Environment yields this string
Trait Implementations§
source§impl Clone for Environment
impl Clone for Environment
source§fn clone(&self) -> Environment
fn clone(&self) -> Environment
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Environment
impl Debug for Environment
source§impl Display for Environment
impl Display for Environment
source§impl FromStr for Environment
impl FromStr for Environment
source§impl Hash for Environment
impl Hash for Environment
source§impl PartialEq for Environment
impl PartialEq for Environment
source§fn eq(&self, other: &Environment) -> bool
fn eq(&self, other: &Environment) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for Environment
impl Eq for Environment
impl StructuralEq for Environment
impl StructuralPartialEq for Environment
Auto Trait Implementations§
impl RefUnwindSafe for Environment
impl Send for Environment
impl Sync for Environment
impl Unpin for Environment
impl UnwindSafe for Environment
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