Struct build_helper::Triple
[−]
[src]
pub struct Triple { /* fields omitted */ }
Platform triple.
Methods
impl Triple
[src]
fn new(triple: String) -> Triple
Create a Triple
from its string representation.
fn as_str(&self) -> &str
Get triple as a string.
fn arch(&self) -> &str
Platform processor architecture.
Values include "i686"
, "x86_64"
, "arm"
, etc.
fn env(&self) -> Option<&str>
Platform toolchain environment.
Values include "gnu"
, "msvc"
, "musl"
, "android"
etc. Value is None
if the platform doesn't specify an environment.
fn family(&self) -> &str
Platform machine family.
Values include "apple"
, "pc"
, "unknown"
, etc.
fn os(&self) -> &str
Platform operating system.
Values include "linux"
, "windows"
, "ios"
, etc.
Trait Implementations
impl Clone for Triple
[src]
fn clone(&self) -> Triple
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Eq for Triple
[src]
impl PartialEq for Triple
[src]
fn eq(&self, __arg_0: &Triple) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Triple) -> bool
This method tests for !=
.