pub fn decode<'b, T>(d: &mut Decoder<'b>) -> Result<T, Error> where
    T: DecodeBytes<'b>, 
Expand description

Freestanding function calling DecodeBytes::decode_bytes.

For use in #[cbor(with = "minicbor::bytes")] or #[cbor(decode_with = "minicbor::bytes::decode")].