decode_bytes

Function decode_bytes 

Source
pub fn decode_bytes<'a, R: AsRef<[u8]>, V: Decode<Slice<'a>>>(
    bytes: &'a R,
) -> EncodingResult<V>
Expand description

Decodes the given value by constructing an encoder on the fly and using it to wrap a byte slice.

Uses the default Context