[][src]Function rmpv::encode::write_value

pub fn write_value<W>(wr: &mut W, val: &Value) -> Result<(), Error> where
    W: Write

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.