[−][src]Struct target_lexicon::Triple
A target "triple", because historically such things had three fields, though they've grown more features over time.
Fields
architecture: Architecture
The "architecture" (and sometimes the subarchitecture).
vendor: Vendor
The "vendor" (whatever that means).
operating_system: OperatingSystem
The "operating system" (sometimes also the environment).
environment: Environment
The "environment" on top of the operating system.
binary_format: BinaryFormat
The "binary format" (rarely used).
Methods
impl Triple
[src]
impl Triple
[src]
pub fn endianness(&self) -> Result<Endianness, ()>
[src]
Return the endianness of this target's architecture.
pub fn pointer_width(&self) -> Result<PointerWidth, ()>
[src]
Return the pointer width of this target's architecture.
pub fn default_calling_convention(&self) -> Result<CallingConvention, ()>
[src]
Return the default calling convention for the given target triple.
Trait Implementations
impl PartialEq<Triple> for Triple
[src]
impl Eq for Triple
[src]
impl Hash for Triple
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Debug for Triple
[src]
impl Display for Triple
[src]
impl FromStr for Triple
[src]
type Err = ParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Clone for Triple
[src]
impl Default for Triple
[src]
Auto Trait Implementations
impl Send for Triple
impl Sync for Triple
impl Unpin for Triple
impl RefUnwindSafe for Triple
impl UnwindSafe for Triple
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,