pub fn from_slice<'a, T>(input: &'a [u8]) -> Result<(T, usize)>where
T: Deserialize<'a>,Expand description
Deserialize an instance of type T from a slice of bytes in a MessagePack format.
Return a tuple with (value, msgpack_len). msgpack_len <= input.len().
Any &str or &[u8] in the returned type will contain references to the provided slice.