Function u32

fn u32<T, E: ParseError<T>>(input: T) -> IResult<T, u32, E>
where
    T: Input,
    <T as Input>::Item: AsChar

will parse a number in text form to a number

Complete version: can parse until the end of input.