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 TargetTriple
pub fn from_triple(triple: &str) -> Self
[src]
pub fn from_triple(triple: &str) -> Self
Creates 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) -> &str
Returns 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) -> String
Returns 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 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 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)
Performs copy-assignment from source
. Read more
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 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,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Encodable for TargetTriple
[src]
impl Encodable for TargetTriple
impl Decodable for TargetTriple
[src]
impl Decodable for TargetTriple
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