Module shared

Module shared 

Source

Structs§

CompactFormatter
Write a minimum of whitespace, minimizing output size
DefaultFloatFormat
This is the default formatter for floating point numbers. It writes numbers from 1e-3 to 1e6 as regular decimal numbers, and numbers outside that range in exponential representation.
JsonNumber
A JsonNumber is the raw representation of a number. It is a parsed representation in the sense that a JsonReader (more or less) verified that it is a valid JSON number, but it has not been parsed into an actual Rust numeric type yet.
Location
Represents a location in a parsed stream: offset as well as line and column. This location is maintained by a JsonReader and is mostly useful to help pinpoint problems.
PrettyFormatter
Write some whitespace and indentation to improve human readability

Enums§

JsonParseError
A JsonParseError represents the range of things that can go wrong while reading a JSON stream: I/O error, byte sequences that are invalid UTF-8, violations of JSON tokenization or grammar, and tokens that exceed the JsonReader’s configured token buffer size.
JsonReadToken
JsonReadToken represents a single token read from a JsonReader. It does not own string data, but references the reader’s internal buffer.

Traits§

FloatFormat
This trait allows customization of how json-streaming formats floating point numbers.
JsonFormatter
JsonFormatter controls how whitespace is added between JSON elements in the output. It does not affect the JSON’s semantics, but only its looks and size.

Type Aliases§

JsonParseResult
A convenience type alias for a Result with a JsonParseError as its error type.