Function core::intrinsics::is_valid_allocation_size
source · pub(crate) fn is_valid_allocation_size<T>(len: usize) -> bool
🔬This is a nightly-only experimental API. (
core_intrinsics
)Expand description
Checks whether an allocation of len
instances of T
exceeds
the maximum allowed allocation size.