Expand description
Module containing zero-copy parsers.
These parsers require the RangeStream bound instead of a plain Stream.
Structs
Enums
Functions
- Zero-copy parser which reads a range of length
i.len()and succeeds ifiis equal to that range. - Zero-copy parser which returns consumed input range.
- Zero-copy parser which returns a pair: (consumed input range, parsed value).
- Zero-copy parser which reads a range of length
n. - Searches the entire range using
searcherand then consumes a range ofSome(n). Iffcan not find anything in the range it must returnNone/NotFoundwhich indicates an end of input error. - Zero-copy parser which reads a range of 0 or more tokens until
ris found. - Zero-copy parser which reads a range of 0 or more tokens which satisfy
f. - Zero-copy parser which reads a range of 1 or more tokens which satisfy
f.