pub fn write_str<W: RmpWrite>(
wr: &mut W,
data: &str,
) -> Result<(), ValueWriteError<W::Error>>
Expand description
Encodes and attempts to write the most efficient string binary representation to the
given Write
.
§Errors
This function will return ValueWriteError
on any I/O error occurred while writing either the
marker or the data.