Function encode_bytes_with
Source pub fn encode_bytes_with<V: Encode<VecStream>>(
value: V,
context: Context<'_>,
) -> EncodingResult<Vec<u8>>
Available on crate feature alloc only.
Expand description
Encodes the given value by constructing an encoder on the fly backed by a
VecStream, then returning the wrapped vector of bytes
Uses the given Context