EnumRepr

Type Alias EnumRepr 

Source
pub(crate) type EnumRepr = Repr<PrimitiveRepr, Infallible>;
Expand description

The representations which can legally appear on an enum type.

Aliased Type§

pub(crate) enum EnumRepr {
    Transparent(Span),
    Compound(Spanned<CompoundRepr<PrimitiveRepr>>, Option<Spanned<AlignRepr<Infallible>>>),
}

Variants§

§

Transparent(Span)

#[repr(transparent)]

§

Compound(Spanned<CompoundRepr<PrimitiveRepr>>, Option<Spanned<AlignRepr<Infallible>>>)

A compound representation: repr(C), repr(Rust), or repr(Int) optionally combined with repr(packed(...)) or repr(align(...))