// Convert a Vec<bool> to u32 by parsing it as radix 2
Convert a Vec to u32 by parsing it as radix 2
Convert a Vec to u32 by parsing it as radix 2
fn bitvec_to_u32(bool_vec: Vec<bool>) -> u32 {
    let gamma_rate_string: String = bool_vec
        .into_iter()
        .map(|b| if b { '1' } else { '0' })
        .collect();
    usize::from_str_radix(&gamma_rate_string, 2).unwrap() as u32
}
fn bitvec_to_u32 ( bool_vec : Vec < bool > ) -> u32 { let gamma_rate_string : String = bool_vec . into_iter ( ) . map ( | b | if b { '1' } else { '0' } ) . collect ( ) ; usize :: from_str_radix ( & gamma_rate_string , 2 ) . unwrap ( ) as u32 }
Convert a Vec<bool> to u32 by parsing it as radix 2
Convert a Vec<bool > to u32 by parsing it as radix 2
bool_vec
Vec<bool>