Enum rustc_target::spec::TargetTriple [−][src]
Either a target triple string or a path to a JSON file.
Variants
TargetTriple(String)TargetPath(PathBuf)
Methods
impl TargetTriple[src]
impl TargetTriplepub fn from_triple(triple: &str) -> Self[src]
pub fn from_triple(triple: &str) -> SelfCreates a target triple from the passed target triple string.
pub fn from_path(path: &Path) -> Result<Self, Error>[src]
pub fn from_path(path: &Path) -> Result<Self, Error>Creates a target triple from the passed target path.
pub fn triple(&self) -> &str[src]
pub fn triple(&self) -> &strReturns a string triple for this target.
If this target is a path, the file name (without extension) is returned.
pub fn debug_triple(&self) -> String[src]
pub fn debug_triple(&self) -> StringReturns an extended string triple for this target.
If this target is a path, a hash of the path is appended to the triple returned
by triple().
Trait Implementations
impl PartialEq for TargetTriple[src]
impl PartialEq for TargetTriplefn eq(&self, other: &TargetTriple) -> bool[src]
fn eq(&self, other: &TargetTriple) -> boolThis 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) -> boolThis method tests for !=.
impl Clone for TargetTriple[src]
impl Clone for TargetTriplefn clone(&self) -> TargetTriple[src]
fn clone(&self) -> TargetTripleReturns 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)Performs copy-assignment from source. Read more
impl Debug for TargetTriple[src]
impl Debug for TargetTriplefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Hash for TargetTriple[src]
impl Hash for TargetTriplefn 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, Feeds a slice of this type into the given [Hasher]. Read more
impl Encodable for TargetTriple[src]
impl Encodable for TargetTripleimpl Decodable for TargetTriple[src]
impl Decodable for TargetTripleimpl Display for TargetTriple[src]
impl Display for TargetTripleAuto Trait Implementations
impl Send for TargetTriple
impl Send for TargetTripleimpl Sync for TargetTriple
impl Sync for TargetTriple