Function to_slice_newline

Source
pub fn to_slice_newline<'a, 'b, T>(
    value: &'b T,
    buf: &'a mut [u8],
) -> Result<&'a mut [u8]>
where T: Serialize + ?Sized,
Expand description

Serialize a T to the given slice. The terminating newline is included in the output buffer.