pub fn write_value<W>(
    wr: &mut W,
    val: &Value
) -> Result<(), ValueWriteError<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.