Function oasis_cbor::from_slice[][src]

pub fn from_slice<T>(data: &[u8]) -> Result<T, DecodeError> where
    T: Decode
Expand description

Convert CBOR-encoded data into the given type.