Function simd_json::value::deserialize_with_buffers
source · pub fn deserialize_with_buffers<'de, Value, Key>(
s: &'de mut [u8],
buffers: &mut Buffers,
) -> Result<Value>where
Value: ValueBuilder<'de> + From<Vec<Value>> + From<HashMap<Key, Value, ObjectHasher>> + 'de,
Key: Hash + Eq + From<&'de str>,
Expand description
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.
Passes in reusable buffers to reduce allocations.
§Errors
Will return Err
if s
is invalid JSON.