Function |to_byte

conv/bool::|to_byte


Usage

|to_byte(value)

Parameters

↳ value: bool

Return

↴ Vec<byte>


Turns bool into Vec<byte>.

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