Skip to main content

is_layout_constant

Function is_layout_constant 

Source
pub fn is_layout_constant(callee: Option<DefId>) -> bool
Expand description

Whether callee is the compile-time layout constant size_of::<T>() or align_of::<T>(). The runtime intrinsics (size_of_val, align_of_val, pref_align_of, *_val_raw, …) are not classified here.