Encodes and attempts to write an `f64` value as a 9-byte sequence into the given write. The first byte becomes the `f64` marker and the others will represent the data itself. # Errors This function will return `ValueWriteError` on any I/O error occurred while writing either the marker or the data, except the EINTR, which is handled internally.
(wr: &mut W, val: f64)
| 604 | /// This function will return `ValueWriteError` on any I/O error occurred while writing either the |
| 605 | /// marker or the data, except the EINTR, which is handled internally. |
| 606 | pub fn write_f64<W>(wr: &mut W, val: f64) -> Result<(), ValueWriteError> |
| 607 | where W: Write |
| 608 | { |
| 609 | try!(write_marker(wr, Marker::F64)); |
| 610 | write_data_f64(wr, val) |
| 611 | } |
| 612 | |
| 613 | /// Encodes and attempts to write the most efficient string length implementation to the given |
| 614 | /// write, returning the marker used. |