Function rmp::encode::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.