pub fn encode_to_vec<E: Encode, C: Config>(
    val: E,
    config: C
) -> Result<Vec<u8>, EncodeError>
Available on crate feature alloc only.
Expand description

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