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 a custom Writer.

See the config module for more information on configurations.

ยงErrors

Returns an EncodeError if the encoding fails.