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.