[][src]Function simd_json::serde::from_slice

pub fn from_slice<'a, T>(s: &'a mut [u8]) -> Result<T> where
    T: Deserialize<'a>, 

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

Errors

Will return Err if s is invalid JSON.