[][src]Enum rustc_target::abi::Abi

pub enum Abi {
    Uninhabited,
    Scalar(Scalar),
    ScalarPair(ScalarScalar),
    Vector {
        element: Scalar,
        count: u64,
    },
    Aggregate {
        sized: bool,
    },
}

Describes how values of the type are passed by target ABIs, in terms of categories of C types there are ABI rules for.

Variants

UninhabitedScalar(Scalar)ScalarPair(ScalarScalar)Vector

Fields of Vector

element: Scalarcount: u64
Aggregate

Fields of Aggregate

sized: bool

If true, the size is exact, otherwise it's only a lower bound.

Methods

impl Abi[src]

pub fn is_unsized(&self) -> bool[src]

Returns true if the layout corresponds to an unsized type.

pub fn is_signed(&self) -> bool[src]

Returns true if this is a single signed integer scalar

pub fn is_uninhabited(&self) -> bool[src]

Returns true if this is an uninhabited type

Trait Implementations

impl Eq for Abi[src]

impl Clone for Abi[src]

impl PartialEq<Abi> for Abi[src]

impl Hash for Abi[src]

impl Debug for Abi[src]

Auto Trait Implementations

impl Unpin for Abi

impl Sync for Abi

impl Send for Abi

impl UnwindSafe for Abi

impl RefUnwindSafe for Abi

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for 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.

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

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T[src]

impl<E> SpecializationError for E[src]

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