Skip to main content

MAX_DIGITS

Constant MAX_DIGITS 

Source
pub const MAX_DIGITS: u32 = 10;
Expand description

Most digits a code may carry.

Ten is where u32 runs out: dynamic truncation yields a 31-bit number, so 10^10 already exceeds it and an eleventh digit would be a constant zero that looks like part of the code.