Expand description
simd-json JSON-DOM value
Re-exports§
pub use self::borrowed::to_value as to_borrowed_value;
pub use self::borrowed::to_value_with_buffers as to_borrowed_value_with_buffers;
pub use self::borrowed::Value as BorrowedValue;
pub use self::owned::to_value as to_owned_value;
pub use self::owned::to_value_with_buffers as to_owned_value_with_buffers;
pub use self::owned::Value as OwnedValue;
Modules§
- This module holds the two dom implementations we use. We distinguish between owned and borrowed. The difference being is that the borrowed value will use
&str
as its string type, referencing the input, while owned will allocate a new String for each value. - Traits for serializing JSON
- A value that starts out as a tape and upgraes to a borrowed value when mutation is needed Lazy value, this gets initialized with a tape and as long as only non mutating operations are performed it will stay a tape. If it is mutated it is upgtaded to a borrowed value. This allows for a very cheap parsin and data access while still maintaining mutability.
- Owned, lifetimeless version of the value for times when lifetimes are to be avoided
- Prelude for traits
- Tape implementation
Structs§
- A type error thrown by the
try_*
functions
Enums§
- An access error for
ValueType
- Extended types that have no native representation in JSON
- Static tape node
- Types of JSON values
Traits§
- Support of builder methods for traits.
Functions§
- Parses a slice of bytes into a Value dom. This function will rewrite the slice to de-escape strings. As we reference parts of the input slice the resulting dom has the same lifetime as the slice it was created from.
- Parses a slice of bytes into a Value dom. This function will rewrite the slice to de-escape strings. As we reference parts of the input slice the resulting dom has the same lifetime as the slice it was created from.
Type Aliases§
- Hasher used for objects