Enum rustc_target::spec::TargetTriple [−][src]
Expand description
Either a target triple string or a path to a JSON file.
Variants
TargetTriple(String)
Tuple Fields of TargetTriple
0: String
TargetPath(PathBuf)
Tuple Fields of TargetPath
0: PathBuf
Implementations
Creates a target triple from the passed target triple string.
Creates a target triple from the passed target path.
Returns a string triple for this target.
If this target is a path, the file name (without extension) is returned.
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for TargetTriple
impl Send for TargetTriple
impl Sync for TargetTriple
impl Unpin for TargetTriple
impl UnwindSafe for TargetTriple
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes
Size for each variant:
TargetTriple
: 24 bytesTargetPath
: 24 bytes