nom8::character

Function i32

Source
pub fn i32<T, E: ParseError<T>, const STREAMING: bool>(
    input: T,
) -> IResult<T, i32, E>
where T: InputIter + Slice<RangeFrom<usize>> + InputLength + InputTake + Clone + InputIsStreaming<STREAMING> + IntoOutput + for<'a> Compare<&'a [u8]>, <T as InputIter>::Item: AsChar,
Expand description

will parse a number in text form to a number

Complete version: can parse until the end of input.

Streaming version: Will return Err(nom8::Err::Incomplete(_)) if there’s not enough input data.