Module tape

Source

Macrosยง

next ๐Ÿ”’
Evaluates to the next element in the iterator or breaks the current loop

Structsยง

BufIter ๐Ÿ”’
A wrapper around a slice iterator that provides some helper functionality
Tape
A decoded JSON tape
TapeDecoder
Implements a state machine for decoding JSON to a tape

Enumsยง

DecoderState ๐Ÿ”’
States based on https://www.json.org/json-en.html
Literal ๐Ÿ”’
TapeElement
We decode JSON to a flattened tape representation, allowing for efficient traversal of the JSON data

Functionsยง

char_from_surrogate_pair ๐Ÿ”’
Creates a character from an UTF-16 surrogate pair
err ๐Ÿ”’
Returns an error for a given byte b and context ctx
json_whitespace ๐Ÿ”’
Evaluates to true if b is a valid JSON whitespace character
parse_hex ๐Ÿ”’
Parse a hex character to u8
write_char ๐Ÿ”’
Writes c as UTF-8 to out