Module tape
Source - next ๐
- Evaluates to the next element in the iterator or breaks the current loop
- 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
- 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
- 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