from_slice

Function from_slice 

Source
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.