pub(super) fn number(
s: &str,
min: usize,
max: usize,
) -> ParseResult<(&str, i64)>
Expand description
Tries to parse the non-negative number from min
to max
digits.
The absence of digits at all is an unconditional error.
More than max
digits are consumed up to the first max
digits.
Any number that does not fit in i64
is an error.