rmp::encode

Function write_bool

Source
pub fn write_bool<W: RmpWrite>(wr: &mut W, val: bool) -> Result<(), W::Error>
Expand description

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.