Skip to main content

scan_digits

Function scan_digits 

Source
fn scan_digits(haystack: &[u8], from: usize) -> Option<usize>
Expand description

Advance past a run of ASCII digits starting at haystack[from]. Returns the absolute index of the first non-digit byte, or None if there are no digits at from (empty run is not valid).