Function json_lines::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.