Function bincode::serde::encode_to_slice[][src]

pub fn encode_to_slice<T, C>(
    t: T,
    slice: &mut [u8],
    config: C
) -> Result<usize, EncodeError> where
    T: Serialize,
    C: Config
This is supported on crate feature serde only.
Expand description

Encode a serde Serialize type into a given byte slice with the bincode algorithm