encode_bytes

Function encode_bytes 

Source
pub fn encode_bytes<V: Encode<VecStream>>(value: V) -> 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 default Context