Module combine::byte [] [src]

Module containing parsers specialized on byte streams.

Structs

AlphaNum
Bytes
BytesCmp
CrLf
Digit
HexDigit
Letter
Lower
Newline
Space
Spaces
Tab
Upper

Functions

alpha_num

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

byte

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

bytes

Parses the bytes s.

bytes_cmp

Parses the bytes s using cmp to compare each token.

crlf

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

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 character (b'\n').

space

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

spaces

Skips over space zero or more times

tab

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

upper

Parses an uppercase ASCII letter (A–Z).