Available on crate feature
parsing
only.Expand description
Implementations of the low-level parser combinators.
Modulesยง
- rfc ๐
- Combinators for rules as defined in a standard.
Functionsยง
- any_
digit ๐ - Consume exactly one digit.
- ascii_
char ๐ - Consume exactly one of the provided ASCII characters.
- ascii_
char_ ๐ignore_ case - Consume exactly one of the provided ASCII characters, case-insensitive.
- exactly_
n_ ๐digits - Consume exactly
n
digits, returning the numerical value. - exactly_
n_ ๐digits_ padded - Consume exactly
n
digits, returning the numerical value. - first_
match ๐ - Consume the first matching item, returning its associated value.
- n_to_m ๐
- Consume between
n
andm
instances of the provided parser. - n_
to_ ๐m_ digits - Consume between
n
andm
digits, returning the numerical value. - n_
to_ ๐m_ digits_ padded - Consume between
n
andm
digits, returning the numerical value. - one_
or_ ๐more - Consume one of or more instances of the provided parser. The parser must produce the unit value.
- opt ๐
- Optionally consume an input with a given parser.
- sign ๐
- Parse a โ+โ or โ-โ sign. Returns the ASCII byte representing the sign, if present.
- zero_
or_ ๐more - Consume zero or more instances of the provided parser. The parser must return the unit value.