Expand description
Logo by Misiasart
Thanks to all individual and corporate sponsors, without whom this work could not exist:
JSON serialization and deserialization for facet.
§Usage
Don’t use it! Duh.
(No but for real it’s being rewritten)
§License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Structs§
- Json
Error - A JSON parse error, with context. Never would’ve guessed huh.
- Json
Error Message - A wrapper type for displaying JSON error messages
- Json
Serializer - A serializer for JSON format that implements the
facet_serialize::Serializertrait. - Span
- A span in the input, with a start position and length
- Spanned
- A value of type
Tannotated with itsSpan - Token
Error - Error encountered during tokenization
- Tokenizer
- Simple JSON tokenizer producing spanned tokens from byte input.
Enums§
- Json
Error Kind - An error kind for JSON parsing.
- Token
- JSON tokens (without positions)
- Token
Error Kind - Types of errors that can occur during tokenization
Functions§
- from_
slice - Deserialize JSON from a slice
- from_
slice_ wip - Deserialize a JSON string into a Wip object.
- from_
str - Deserializes a JSON string into a value of type
Tthat implementsFacet. - peek_
to_ string - Serializes a Peek instance to JSON
- peek_
to_ writer - Serializes a Peek instance to a writer in JSON format
- to_
string - Serializes a value to JSON
- to_
writer - Serializes a value to a writer in JSON format
Type Aliases§
- Pos
- Position in the input (byte index)
- Tokenize
Result - Tokenization result, yielding a spanned token