Function i8

fn i8<T, E: ParseError<T>>(input: T) -> IResult<T, i8, E>
where
    T: Input + Clone + for<'a> Compare<&'a [u8]>,
    <T as Input>::Item: AsChar

will parse a number in text form to a number

Complete version: can parse until the end of input.