pub fn from_slice<'a, T>(slice: &'a [u8]) -> Result<T, Error>where
T: Deserialize<'a>,Expand description
Decode a value from CBOR from the given slice.
pub fn from_slice<'a, T>(slice: &'a [u8]) -> Result<T, Error>where
T: Deserialize<'a>,Decode a value from CBOR from the given slice.