Function rmp::encode::write_bool [] [src]

pub fn write_bool<W: Write>(wr: &mut W, val: bool) -> Result<(), Error>

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

Each call to this function may generate an I/O error indicating that the operation could not be completed.