Struct oysterpack_app_metadata::metadata::TargetTriple [−][src]
pub struct TargetTriple(_);
Platforms are identified by their “target triple” which is the string to inform the compiler what kind of output should be produced.
The target triple has the general format <arch><sub>-<vendor>-<sys>-<abi>
, where:
arch
- x86, arm, thumb, mips, etc.
- On UNIXy systems, you can find this with the command uname -m.
sub
- for example on ARM: v5, v6m, v7a, v7m, etc.
vendor
- pc, apple, nvidia, ibm, etc.
- On linux: usually unknown. On windows: pc. On OSX/iOS: apple
sys
- none, linux, win32, darwin, cuda, etc.
- On UNIXy systems, you can find this with the command uname -s
abi
- eabi, gnu, android, macho, elf, etc.
- On Linux, this refers to the libc implementation which you can find out with ldd --version.
- Mac and *BSD systems don't provide multiple ABIs, so this field is omitted.
- On Windows, AFAIK there are only two ABIs: gnu and msvc.
Methods
impl TargetTriple
[src]
impl TargetTriple
pub fn new(value: &str) -> TargetTriple
[src]
pub fn new(value: &str) -> TargetTriple
TargetTriple constructor
pub fn get(&self) -> &str
[src]
pub fn get(&self) -> &str
get the underlying value
Trait Implementations
impl Debug for TargetTriple
[src]
impl Debug for TargetTriple
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for TargetTriple
[src]
impl Clone for TargetTriple
fn clone(&self) -> TargetTriple
[src]
fn clone(&self) -> TargetTriple
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Eq for TargetTriple
[src]
impl Eq for TargetTriple
impl PartialEq for TargetTriple
[src]
impl PartialEq for TargetTriple
fn eq(&self, other: &TargetTriple) -> bool
[src]
fn eq(&self, other: &TargetTriple) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &TargetTriple) -> bool
[src]
fn ne(&self, other: &TargetTriple) -> bool
This method tests for !=
.
impl Hash for TargetTriple
[src]
impl Hash for TargetTriple
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[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 Display for TargetTriple
[src]
impl Display for TargetTriple
Auto Trait Implementations
impl Send for TargetTriple
impl Send for TargetTriple
impl Sync for TargetTriple
impl Sync for TargetTriple