rustc_const_eval::util

Function is_disaligned

Source
pub fn is_disaligned<'tcx, L>(
    tcx: TyCtxt<'tcx>,
    local_decls: &L,
    typing_env: TypingEnv<'tcx>,
    place: Place<'tcx>,
) -> bool
where 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).