Enum rustc_back::target::TargetTriple
[−]
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Either a target triple string or a path to a JSON file.
Variants
TargetTriple(String)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
TargetPath(PathBuf)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Methods
impl TargetTriple
[src]
impl TargetTriple
pub fn from_triple(triple: &str) -> Self
[src]
pub fn from_triple(triple: &str) -> Self
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
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>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Creates a target triple from the passed target path.
pub fn triple(&self) -> &str
[src]
pub fn triple(&self) -> &str
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
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
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
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, __arg_0: &TargetTriple) -> bool
[src]
fn eq(&self, __arg_0: &TargetTriple) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TargetTriple) -> bool
[src]
fn ne(&self, __arg_0: &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, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &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, __arg_0: &mut __H)
[src]
fn hash<__H: Hasher>(&self, __arg_0: &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
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>
[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
impl Decodable for TargetTriple
[src]
impl Decodable for TargetTriple
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<TargetTriple, __D::Error>
[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<TargetTriple, __D::Error>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
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