clippy_utils::ty

Function approx_ty_size

source
pub fn approx_ty_size<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> u64
Expand description

Comes up with an “at least” guesstimate for the type’s size, not taking into account the layout of type parameters.