decode_bytes_owned

Function decode_bytes_owned 

Source
pub fn decode_bytes_owned<R: AsRef<[u8]>, V: for<'a> Decode<Slice<'a>>>(
    bytes: &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