lexical_util::step

Function min_step

Source
pub const fn min_step(radix: u32, bits: usize, is_signed: bool) -> usize
Expand description

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