Skip to main content

Module alignment

Module alignment 

Source

Re-exportsยง

use rustc_abi::Align; ๐Ÿ”’
use rustc_middle::ty; ๐Ÿ”’
use rustc_middle::ty::AdtDef; ๐Ÿ”’
use rustc_middle::ty::TyCtxt; ๐Ÿ”’
use tracing::debug; ๐Ÿ”’
use rustc_middle::mir::*; ๐Ÿ”’

Functionsยง

most_packed_projection
If the place includes a projection from a packed struct, returns the AdtDef and packed alignment of the projection with the lowest pack
place_unalignment
If the place may be less aligned than its type requires (because it is in a packed type), returns the AdtDef and packed alignment of its most-unaligned projection.