Expand description
Module containing parsers specialized on byte streams.
Modules§
- num
- Parsers for decoding numbers in big-endian or little-endian order.
Structs§
Functions§
- alpha_
num - Parses either an ASCII alphabet letter or digit (a–z, A–Z, 0–9).
- byte
- Parses a byte and succeeds if the byte is equal to
c
. - bytes
- Parses the bytes
s
. - bytes_
cmp - Parses the bytes
s
usingcmp
to compare each token. - crlf
- Parses carriage return and newline (
&b"\r\n"
), returning the newline byte. - digit
- Parses a base-10 digit (0–9).
- hex_
digit - Parses an ASCII hexdecimal digit (accepts both uppercase and lowercase).
- letter
- Parses an ASCII alphabet letter (a–z, A–Z).
- lower
- Parses an lowercase ASCII letter (a–z).
- newline
- Parses a newline byte (
b'\n'
). - oct_
digit - Parses an octal digit.
- space
- Parses a
b' '
,b'\t'
,b'\n'
or'b\'r'
. - spaces
- Skips over
space
zero or more times - tab
- Parses a tab byte (
b'\t'
). - take_
until_ byte - Zero-copy parser which reads a range of 0 or more tokens until
a
is found. - take_
until_ byte2 - Zero-copy parser which reads a range of 0 or more tokens until
a
orb
is found. - take_
until_ byte3 - Zero-copy parser which reads a range of 0 or more tokens until
a
, ‘b’ orc
is found. - take_
until_ bytes - Zero-copy parser which reads a range of 0 or more tokens until
needle
is found. - upper
- Parses an uppercase ASCII letter (A–Z).