encode_to_vec

Function encode_to_vec 

Source
pub fn encode_to_vec<E, C>(val: E, config: C) -> Result<Vec<u8>, EncodeError>
where E: Encode, C: Config,
Expand description

Encode the given value into a Vec<u8> with the given Config. See the config module for more information.