Module read

Source

ModulesΒ§

private πŸ”’

StructsΒ§

IoRead
JSON input source that reads from a std::io input stream.
Position
SliceRead
JSON input source that reads from a slice of bytes.
StrRead
JSON input source that reads from a UTF-8 string.

EnumsΒ§

Reference

StaticsΒ§

HEX0 πŸ”’
HEX1 πŸ”’

TraitsΒ§

Fused
Marker for whether StreamDeserializer can implement FusedIterator.
Read
Trait used by the deserializer for iterating over input. This is manually β€œspecialized” for iterating over &[u8]. Once feature(specialization) is stable we can use actual specialization.

FunctionsΒ§

as_str πŸ”’
build_hex_table πŸ”’
decode_four_hex_digits πŸ”’
decode_hex_val_slow πŸ”’
error πŸ”’
ignore_escape πŸ”’
Parses a JSON escape sequence and discards the value. Assumes the previous byte read was a backslash.
is_escape πŸ”’
next_or_eof πŸ”’
parse_escape πŸ”’
Parses a JSON escape sequence and appends it into the scratch space. Assumes the previous byte read was a backslash.
parse_unicode_escape πŸ”’
Parses a JSON \u escape and appends it into the scratch space. Assumes \u has just been read.
peek_or_eof πŸ”’
push_wtf8_codepoint πŸ”’
Adds a WTF-8 codepoint to the end of the buffer. This is a more efficient implementation of String::push. The codepoint may be a surrogate.