Function flussab::text::ascii_digits[][src]

pub fn ascii_digits<I>(
    reader: &mut ByteReader<'_>,
    offset: usize
) -> (Option<I>, usize) where
    I: Zero + FromPrimitive + OverflowingAdd + OverflowingMul

Passes over ASCII digits and parses them as decimal number.

Increments offset as long as it points to an ASCII digit. It returns the value of the digits parsed as decimal number (or None on overflow) and the resulting offset.