Expand description

Module containing parsers specialized on byte streams.

Modules

Parsers for decoding numbers in big-endian or little-endian order.

Structs

Functions

Parses either an ASCII alphabet letter or digit (a–z, A–Z, 0–9).

Parses a byte and succeeds if the byte is equal to c.

Parses the bytes s.

Parses the bytes s using cmp to compare each token.

Parses carriage return and newline (&b"\r\n"), returning the newline byte.

Parses a base-10 digit (0–9).

Parses an ASCII hexdecimal digit (accepts both uppercase and lowercase).

Parses an ASCII alphabet letter (a–z, A–Z).

Parses an lowercase ASCII letter (a–z).

Parses a newline byte (b'\n').

Parses an octal digit.

Parses a b' ', b'\t', b'\n' or 'b\'r'.

Skips over space zero or more times

Parses a tab byte (b'\t').

Zero-copy parser which reads a range of 0 or more tokens until a is found.

Zero-copy parser which reads a range of 0 or more tokens until a or b is found.

Zero-copy parser which reads a range of 0 or more tokens until a, ‘b’ or c is found.

Zero-copy parser which reads a range of 0 or more tokens until needle is found.

Parses an uppercase ASCII letter (A–Z).