Module rustc::ty::layout[][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

use session;
use session::DataTypeKind;
use ty;
use ty::Ty;
use ty::TyCtxt;
use ty::TypeFoldable;
use ty::ReprOptions;
use syntax::ast;
use syntax::ast::FloatTy;
use syntax::ast::IntTy;
use syntax::ast::UintTy;
use syntax::attr;
use syntax_pos::DUMMY_SP;
use std::cmp;
use std::fmt;
use std::i128;
use std::mem;
use ich::StableHashingContext;
use rustc_data_structures::stable_hasher::HashStable;
use rustc_data_structures::stable_hasher::StableHasher;
use rustc_data_structures::stable_hasher::StableHasherResult;
pub use rustc_target::abi::*;

Structs

LayoutCx [
Experimental
]

Enums

LayoutError [
Experimental
]
SizeSkeleton [
Experimental
]

Type size "skeleton", i.e. the only information determining a type's size. While this is conservative, (aside from constant sizes, only pointers, newtypes thereof and null pointer optimized enums are allowed), it is enough to statically check common usecases of transmute.

Constants

FAT_PTR_ADDR [
Experimental
]

The first half of a fat pointer.

FAT_PTR_EXTRA [
Experimental
]

The second half of a fat pointer.

Traits

HasTyCtxt [
Experimental
]
IntegerExt [
Experimental
]
MaybeResult [
Experimental
]
PrimitiveExt [
Experimental
]

Functions

layout_raw [
Experimental
]
provide [
Experimental
]

Type Definitions

TyLayout [
Experimental
]