fn vary_locals(rng: &mut StdRng, locals: BlockLocals) -> BlockLocals {
        let mut locals = locals;
        for (_, (abstr_val, availability)) in locals.iter_mut() {
            if rng.gen_bool(0.5) {
                if *availability == BorrowState::Available {
                    *availability = BorrowState::Unavailable;
                } else {
                    *availability = BorrowState::Available;
                }
            }

            if abstr_val.is_generic() {
                *availability = BorrowState::Unavailable;
            }
        }
        locals
    }
/// Randomly vary the availability of locals
Randomly vary the availability of locals
Randomly vary the availability of locals
fn vary_locals(rng: &mut StdRng, locals: BlockLocals) -> BlockLocals {
        let mut locals = locals;
        for (_, (abstr_val, availability)) in locals.iter_mut() {
            if rng.gen_bool(0.5) {
                if *availability == BorrowState::Available {
                    *availability = BorrowState::Unavailable;
                } else {
                    *availability = BorrowState::Available;
                }
            }
            if abstr_val.is_generic() {
                *availability = BorrowState::Unavailable;
            }
        }
        locals
    }
fn vary_locals ( rng : & mut StdRng , locals : BlockLocals ) -> BlockLocals { let mut locals = locals ; for ( _ , ( abstr_val , availability ) ) in locals . iter_mut ( ) { if rng . gen_bool ( 0.5 ) { if * availability == BorrowState :: Available { * availability = BorrowState :: Unavailable ; } else { * availability = BorrowState :: Available ; } } if abstr_val . is_generic ( ) { * availability = BorrowState :: Unavailable ; } } locals }
Randomly vary the availability of locals
Randomly vary the availability of locals
rng
&mut StdRng
locals
BlockLocals