pub fn int<'a, I: InputType + StrInput<'a, C>, C: Char, E: ParserExtras<I>>(
radix: u32,
) -> impl Fn(Input<'_, I, E>) -> IResult<'_, I, E, &'a C::Str>Expand description
Parses a non-negative integer in the specified radix.
An integer is defined as a non-empty sequence of ASCII digits, where the first digit is non-zero or the sequence has length one.
The output type of this parser is I::Slice (i.e: &str when I is &str, and [&[u8]]
when I is [&[u8]]).
The radix parameter functions identically to char::is_digit. If in doubt, choose 10.