fn test(mut instr: u32, format: &'static [u8]) -> bool {
    assert_eq!(format.len(), 32 + 3);
    for c in format.iter().rev() {
        let bit = instr & 1;
        match c {
            b'0' if bit != 0 => return false,
            b'1' if bit != 1 => return false,
            b'_' => continue, // skip shifting instr
            _ => (),
        }
        instr >>= 1;
    }

    true
}
/// Tests instr against a bit pattern. Positions where format is '0' or '1' must have 0 or 1. Any
/// other character matches any bit, except for '_' which is skipped.
Tests instr against a bit pattern. Positions where format is '0' or '1' must have 0 or 1. Any
other character matches any bit, except for '_' which is skipped.
Tests instr against a bit pattern . Positions where format is ' 0 ' or ' 1 ' must have 0 or 1 . Any other character matches any bit except for ' _ ' which is skipped .
fn test(mut instr: u32, format: &'static [u8]) -> bool {
    assert_eq!(format.len(), 32 + 3);
    for c in format.iter().rev() {
        let bit = instr & 1;
        match c {
            b'0' if bit != 0 => return false,
            b'1' if bit != 1 => return false,
            b'_' => continue, // skip shifting instr
            _ => (),
        }
        instr >>= 1;
    }
    true
}
fn test ( mut instr : u32 , format : & ' static [ u8 ] ) -> bool { assert_eq ! ( format len ( ) 32 3 ) ; for c in format . iter ( ) . rev ( ) { let bit = instr & 1 ; match c { b'0' if bit != 0 => return false , b'1' if bit != 1 => return false , b'_' => continue , // skip shifting instr _ => ( ) , } instr >>= 1 ; } true }
Tests instr against a bit pattern.
Tests instr against a bit pattern .
instr
u32
format
&'static [u8]
instr
u32
format
&'static [u8]