Struct target_lexicon::Triple [−][src]
A target “triple”. Historically such things had three fields, though they’ve added additional fields over time.
Fields
architecture: ArchitectureThe “architecture” (and sometimes the subarchitecture).
vendor: VendorThe “vendor” (whatever that means).
operating_system: OperatingSystemThe “operating system” (sometimes also the environment).
environment: EnvironmentThe “environment” on top of the operating system (often omitted for operating systems with a single predominant environment).
binary_format: BinaryFormatThe “binary format” (rarely used).
Implementations
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 Clone for Triple[src]
fn clone(&self) -> Triple[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for Triple[src]
impl Default for Triple[src]
impl Display for Triple[src]
impl Eq 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 Hash for Triple[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher, 1.3.0[src]
H: Hasher,
impl PartialEq<Triple> for Triple[src]
impl StructuralEq for Triple[src]
impl StructuralPartialEq for Triple[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
    T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
    T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
    T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
    U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
    T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
    T: Display + ?Sized, [src]
T: Display + ?Sized,
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.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, [src]
U: TryFrom<T>,