pub fn write_to_slice<'a, T: Display>( buf: &'a mut [u8], value: &T, ) -> Result<&'a str, CapacityOverflowError>
Writes to the bytes buffer.