Function write_f32

Source
pub fn write_f32<W: Write>(wr: &mut W, val: f32) -> Result<(), ValueWriteError>
Expand description

Encodes and attempts to write an f32 value as a 5-byte sequence into the given write.

The first byte becomes the f32 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.