to_byte

Function to_byte 

Source
pub fn to_byte(value: bool) -> Vec<byte> 
Expand description

Turns bool into Vec<byte>.

ℹ️ A bool always corresponds to one byte, being 0 if false and 1 if true.