pub fn size_of_generic_param<'tcx>( tcx: TyCtxt<'tcx>, caller: DefId, ty: Ty<'tcx>, ) -> u64
Max size_of over all implementors of a generic type parameter’s trait bounds (0 for non-param types).
size_of