Function lexical_util::step::max_step

source ยท
pub const fn max_step(radix: u32, bits: usize, is_signed: bool) -> usize
Expand description

Calculate the maximum number of digits that can be processed without always overflowing for a given type. For example, 20 digits can be processed for a decimal string for u64 without overflowing, but it may overflow.