Function core::num::can_not_overflow
source · pub fn can_not_overflow<T>(
radix: u32,
is_signed_ty: bool,
digits: &[u8]
) -> bool
🔬This is a nightly-only experimental API. (
std_internals
)Expand description
Determines if a string of text of that length of that radix could be guaranteed to be stored in the given type T. Note that if the radix is known to the compiler, it is just the check of digits.len that is done at runtime.