decode_bytes_with_owned

Function decode_bytes_with_owned 

Source
pub fn decode_bytes_with_owned<R: AsRef<[u8]>, V: for<'a> Decode<Slice<'a>>>(
    bytes: &R,
    context: Context<'_>,
) -> 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 given Context