Function simd_json::serde::from_slice_with_buffers

source ·
pub fn from_slice_with_buffers<'a, T>(
    s: &'a mut [u8],
    buffers: &mut Buffers
) -> Result<T>
where T: Deserialize<'a>,
Expand description

Parses a byte slice using a serde deserializer. note that the slice will be rewritten in the process.

Passes in reusable buffers to reduce allocations

§Errors

Will return Err if s is invalid JSON.