pub fn encode_bytes<V: Encode<VecStream>>(value: V) -> EncodingResult<Vec<u8>>
alloc
Encodes the given value by constructing an encoder on the fly backed by a VecStream, then returning the wrapped vector of bytes.
Uses the default Context
Context