1 2 3 4 5 6 7 8 9 10 11 12 13
/* use std::convert::From; impl From<[bool]> for usize { fn from(bool_array: [bool]) -> usize { let output: usize = 0; for index in 0..bool_array.len() { output <<= 1; output += bool_array[index]; } return output; } } */