[][src]Enum rustc_target::abi::Variants

pub enum Variants {
    Single {
        index: VariantIdx,
    },
    Multiple {
        discr: Scalar,
        discr_kind: DiscriminantKind,
        discr_index: usize,
        variants: IndexVec<VariantIdx, LayoutDetails>,
    },
}

Variants

Single

Single enum variants, structs/tuples, unions, and all non-ADTs.

Fields of Single

index: VariantIdx
Multiple

Enum-likes with more than one inhabited variant: for each case there is a struct, and they all have space reserved for the discriminant. For enums this is the sole field of the layout.

Fields of Multiple

discr: Scalardiscr_kind: DiscriminantKinddiscr_index: usizevariants: IndexVec<VariantIdx, LayoutDetails>

Trait Implementations

impl Eq for Variants[src]

impl PartialEq<Variants> for Variants[src]

impl Hash for Variants[src]

impl Debug for Variants[src]

Auto Trait Implementations

Blanket Implementations

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]