Function bools2num

Source
pub fn bools2num(val: [bool; 8]) -> u8
Expand description

Convert an array of 8 bools to an unsigned 8-bit integer

ยงExamples

let out = latreclib::bools2num([true, false, true, false, false, false, false, true]);
 
assert_eq!(out, 133)