pub fn write_value<W>(wr: &mut W, val: &Value) -> Result<(), Error>where
W: Write,
Expand description
Encodes and attempts to write the most efficient representation of the given Value.
ยงNote
All instances of ErrorKind::Interrupted
are handled by this function and the underlying
operation is retried.