Function rmp::encode::write_bool
[−]
[src]
pub fn write_bool<W>(wr: &mut W, val: bool) -> Result<(), FixedValueWriteError> where W: Write
Encodes and attempts to write a bool value into the given write.
According to the MessagePack specification, an encoded boolean value is represented as a single byte.
Errors
This function will return FixedValueWriteError
on any I/O error occurred while writing the
boolean marker.