serde_brief

Function to_slice_with_config

source
pub fn to_slice_with_config<'buf, T>(
    value: &T,
    buffer: &'buf mut [u8],
    config: Config,
) -> Result<&'buf mut [u8]>
where T: Serialize,
Expand description

Serialize a type into a slice of bytes using the given configuration. Returns the slice with the serialized data.