Expand description
The layout of types.
Structs§
- Inhabited
Predicate - Represents whether a type or variant is inhabited. Like rustc’s
InhabitedPredicate, this can depend on generic parameters and constant values. - Layout
- Type layout information.
- Offset
Expr - An expression denoting an offset in bytes.
- Repr
Options - The representation options as annotated by the user.
- Size
- An expression denoting a size in bytes.
- Target
Info - Variant
Layout - Simplified layout of a single variant.
Enums§
- Alignment
Modifier - Describes modifiers to the alignment and packing of the corresponding type.
Represents
repr(align(n))andrepr(packed(n)). - Discriminant
Read Error - Discriminator
- Decision tree used to determine the active variant by reading memory. Mirrors MiniRust’s
Discriminator. - Inhabited
Predicate Kind - Repr
Algorithm - Describes which layout algorithm is used for representing the corresponding type.
Depends on the
#[repr(...)]used.