pub fn from_slice<'de, T>(bytes: &'de [u8]) -> Result<T>where
T: Deserialize<'de>,
Expand description
Deserialize a type from a slice of bytes.
pub fn from_slice<'de, T>(bytes: &'de [u8]) -> Result<T>where
T: Deserialize<'de>,
Deserialize a type from a slice of bytes.