Module rustc_target::abi[][src]

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Re-exports

pub use self::Integer::*;
pub use self::Primitive::*;
use spec::Target;
use std::cmp;
use std::ops::Add;
use std::ops::Deref;
use std::ops::Sub;
use std::ops::Mul;
use std::ops::AddAssign;
use std::ops::Range;
use std::ops::RangeInclusive;

Modules

call [
Experimental
]

Structs

Align [
Experimental
]

Alignment of a type in bytes, both ABI-mandated and preferred. Each field is a power of two, giving the alignment a maximum value of 2(28 - 1), which is limited by LLVM to a maximum capacity of 229 or 536870912.

LayoutDetails [
Experimental
]
Scalar [
Experimental
]

Information about one scalar component of a Rust type.

Size [
Experimental
]

Size of a type in bytes.

TargetDataLayout [
Experimental
]

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

TyLayout [
Experimental
]

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

Enums

Abi [
Experimental
]

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

Endian [
Experimental
]

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

FieldPlacement [
Experimental
]

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

Integer [
Experimental
]

Integers, also used for enum discriminants.

Primitive [
Experimental
]

Fundamental unit of memory access and layout.

Variants [
Experimental
]

Traits

HasDataLayout [
Experimental
]
LayoutOf [
Experimental
]
TyLayoutMethods [
Experimental
]