Expand description
serde::Deserializer implementation backed by the simdjson tape.
This allows you to deserialize any serde::Deserialize type directly from
simdjson’s DOM tape without first converting to an intermediate AST.
§Example
use serde::Deserialize;
use simdjson_rust::serde::from_str;
#[derive(Debug, Deserialize, PartialEq)]
struct Point {
x: f64,
y: f64,
}
let p: Point = from_str(r#"{"x": 1.0, "y": 2.0}"#).unwrap();
assert_eq!(p, Point { x: 1.0, y: 2.0 });Structs§
- Tape
Deserializer - A
serde::Deserializerthat reads directly from the simdjson tape.
Enums§
- Error
- The error type returned by the Serde deserializer.
Functions§
- from_
bytes - Deserialize
Tfrom a JSON byte slice using the simdjson DOM tape. - from_
str - Deserialize
Tfrom a JSON string using the simdjson DOM tape. - from_
tape - Deserialize
Tdirectly from a parsedTapeRefcursor.