pub fn to_vec_with<C, T>(x: T, ctx: &mut C) -> Result<Vec<u8>, Error<Error>> where T: Encode<C>,
Encode a type implementing Encode and return the encoded byte vector.
Encode
Requires feature "std".
"std"