[][src]Enum rustc_ap_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

Uninhabited
Scalar(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.

Implementations

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

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

Returns true is this is a scalar type

Trait Implementations

impl Clone for Abi[src]

impl Debug for Abi[src]

impl Eq for Abi[src]

impl Hash for Abi[src]

impl<__CTX> HashStable<__CTX> for Abi where
    __CTX: HashStableContext
[src]

impl PartialEq<Abi> for Abi[src]

impl StructuralEq for Abi[src]

impl StructuralPartialEq for Abi[src]

Auto Trait Implementations

impl RefUnwindSafe for Abi

impl Send for Abi

impl Sync for Abi

impl Unpin for Abi

impl UnwindSafe for Abi

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<'a, T> Captures<'a> for T where
    T: ?Sized
[src]

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

impl<T> Erased for T[src]

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

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

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

type Error = !

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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>,