Function winnow::ascii::dec_uint

source ·
pub fn dec_uint<Input, Output, Error>(
    input: &mut Input
) -> PResult<Output, Error>
where Input: StreamIsPartial + Stream, <Input as Stream>::Slice: AsBStr, <Input as Stream>::Token: AsChar + Clone, Output: Uint, Error: ParserError<Input>,
Expand description

Decode a decimal unsigned integer (e.g. u32)

Complete version: can parse until the end of input.

[Partial version][crate::_topic::partial]: Will return Err(winnow::error::ErrMode::Incomplete(_)) if there’s not enough input data.

§Effective Signature

Assuming you are parsing a &str Stream into a u32:

pub fn dec_uint(input: &mut &str) -> PResult<u32>