pub fn encode_to_vec<T: Encode>(value: &T, config: Config) -> Result<Vec<u8>>Expand description
Encode a value to a Vec<u8>.
ยงExample
use justcode_core::{Encode, config};
let value = 42u32;
let config = config::standard();
let encoded = justcode_core::encode_to_vec(&value, config).unwrap();