StructUnionRepr

Type Alias StructUnionRepr 

Source
pub(crate) type StructUnionRepr = Repr<Infallible, NonZeroU32>;
Expand description

The representations which can legally appear on a struct or union type.

Aliased Type§

pub(crate) enum StructUnionRepr {
    Transparent(Span),
    Compound(Spanned<CompoundRepr<Infallible>>, Option<Spanned<AlignRepr<NonZero<u32>>>>),
}

Variants§

§

Transparent(Span)

#[repr(transparent)]

§

Compound(Spanned<CompoundRepr<Infallible>>, Option<Spanned<AlignRepr<NonZero<u32>>>>)

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