encode_into_slice

Function encode_into_slice 

Source
pub fn encode_into_slice<E, C>(
    val: E,
    dst: &mut [u8],
    config: C,
) -> Result<usize, EncodeError>
where E: Serialize, C: Config,
Available on crate feature serde only.
Expand description

Encode the given value into the given slice. Returns the amount of bytes that have been written.

See the config module for more information on configurations.