byte_slice::bs_collect_digits32!
[−]
[src]
macro_rules! bs_collect_digits32 { ($context:expr, $var:expr, $on_byte:expr, $on_eos:expr) => { ... }; ($context:expr, $var:expr, $on_eos:expr) => { ... }; }
Collect all sequential digit bytes into $var (u32), and convert them into an unsigned integer.
If $on_byte is supplied, for each new byte execute $on_byte. Upon locating end-of-stream
execute $on_eos.
Exit the collection loop upon locating a non-digit byte.