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