pub fn bits_to_config(bits: &[bool]) -> Vec<usize>
Convert a bitvec-style representation to a binary configuration.