[][src]Struct cfg_expr::targets::TargetInfo

pub struct TargetInfo {
    pub triple: &'static str,
    pub os: Option<Os>,
    pub arch: Arch,
    pub env: Option<Env>,
    pub vendor: Option<Vendor>,
    pub family: Option<Family>,
    pub pointer_width: u8,
    pub endian: Endian,
}

Contains information regarding a particular target known to rustc

Fields

triple: &'static str

The target's unique identifier

os: Option<Os>

The target's operating system, if any. Used by the target_os predicate.

arch: Arch

The target's CPU architecture. Used by the target_arch predicate.

env: Option<Env>

The target's ABI/libc used, if any. Used by the target_env predicate.

vendor: Option<Vendor>

The target's vendor, if any. Used by the target_vendor predicate.

family: Option<Family>

The target's family, if any. Used by the target_family predicate.

pointer_width: u8

The size of the target's pointer type. Used by the target_pointer_width predicate.

endian: Endian

The target's endianness. Used by the target_endian predicate.

Trait Implementations

impl Debug for TargetInfo[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<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.