Function bincode::serde::encode_to_vec
source · [−]pub fn encode_to_vec<T, C>(t: T, config: C) -> Result<Vec<u8>, EncodeError>where
T: Serialize,
C: Config,
Available on crate features
serde
and alloc
only.Expand description
Encode a serde
Serialize
type into a Vec<u8>
with the bincode algorithm