Function rustc_const_eval::util::alignment::is_disaligned
source · [−]pub fn is_disaligned<'tcx, L>(
tcx: TyCtxt<'tcx>,
local_decls: &L,
param_env: ParamEnv<'tcx>,
place: Place<'tcx>
) -> boolwhere
L: HasLocalDecls<'tcx>,
Expand description
Returns true
if this place is allowed to be less aligned
than its containing struct (because it is within a packed
struct).