pub fn encode_to_vec<E: Encode, C: Config>( val: E, config: C) -> Result<Vec<u8>, EncodeError>
alloc
Encode the given value into a Vec<u8> with the given Config. See the config module for more information.
Vec<u8>
Config