Struct wasmer_near::Triple[][src]

pub struct Triple {
    pub architecture: Architecture,
    pub vendor: Vendor,
    pub operating_system: OperatingSystem,
    pub environment: Environment,
    pub binary_format: BinaryFormat,
}

A target "triple". Historically such things had three fields, though they've added additional fields over time.

Note that Triple doesn't implement Default itself. If you want a type which defaults to the host triple, or defaults to unknown-unknown-unknown, use DefaultToHost or DefaultToUnknown, respectively.

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 (often omitted for operating systems with a single predominant environment).

binary_format: BinaryFormat

The "binary format" (rarely used).

Implementations

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.

pub fn data_model(&self) -> Result<CDataModel, ()>[src]

The C data model for a given target. If the model is not known, returns Err(()).

pub fn unknown() -> Triple[src]

Return a Triple with all unknown fields.

impl Triple[src]

pub const fn host() -> Triple[src]

Return the triple for the current host.

Trait Implementations

impl Clone for Triple[src]

impl Debug 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.

impl Hash for Triple[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,