Module rustc_ap_rustc_target::abi[][src]

Re-exports

pub use Integer::*;
pub use Primitive::*;

Modules

Structs

A pair of alignments, ABI-mandated and preferred.

An identifier that specifies the address space that some operation should operate on. Special address spaces have an effect on code generation, depending on the target and the address spaces it implements.

Alignment of a type in bytes (always a power of two).

Information about one scalar component of a Rust type.

Size of a type in bytes.

Parsed Data layout for a target, which contains everything needed to compute layouts.

The layout of a type, alongside the type itself. Provides various type traversal APIs (e.g., recursing into fields).

Enums

Describes how values of the type are passed by target ABIs, in terms of categories of C types there are ABI rules for.

Endianness of the target, which must match cfg(target-endian).

Describes how the fields of a type are located in memory.

Integers, also used for enum discriminants.

Fundamental unit of memory access and layout.

Traits

Trait for context types that can compute layouts of things.

The TyAndLayout above will always be a MaybeResult<TyAndLayout<'_, Self>>. We can’t add the bound due to the lifetime, but this trait is still useful when writing code that’s generic over the LayoutOf impl.