Skip to main content

Module layout

Module layout 

Source
Expand description

The layout of types.

Structs§

InhabitedPredicate
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.
OffsetExpr
An expression denoting an offset in bytes.
ReprOptions
The representation options as annotated by the user.
Size
An expression denoting a size in bytes.
TargetInfo
VariantLayout
Simplified layout of a single variant.

Enums§

AlignmentModifier
Describes modifiers to the alignment and packing of the corresponding type. Represents repr(align(n)) and repr(packed(n)).
DiscriminantReadError
Discriminator
Decision tree used to determine the active variant by reading memory. Mirrors MiniRust’s Discriminator.
InhabitedPredicateKind
ReprAlgorithm
Describes which layout algorithm is used for representing the corresponding type. Depends on the #[repr(...)] used.

Type Aliases§

ByteCount