/// Returns `true` if a closure is inferred to be an `FnMut` closure.
Returns `true` if a closure is inferred to be an `FnMut` closure.
Returns ` true ` if a closure is inferred to be an ` FnMut ` closure .
fn is_closure_fn_mut(&self, fr: RegionVid) -> bool {
        if let Some(ty::ReFree(free_region)) = self.to_error_region(fr) {
            if let ty::BoundRegionKind::BrEnv = free_region.bound_region {
                if let DefiningTy::Closure(_, substs) =
                    self.regioncx.universal_regions().defining_ty
                {
                    return substs.as_closure().kind() == ty::ClosureKind::FnMut;
                }
            }
        }
        false
    }
fn is_closure_fn_mut ( & self , fr : RegionVid ) -> bool { if let Some ( ty :: ReFree ( free_region ) ) = self . to_error_region ( fr ) { if let ty :: BoundRegionKind :: BrEnv = free_region . bound_region { if let DefiningTy :: Closure ( _ , substs ) = self . regioncx . universal_regions ( ) . defining_ty { return substs . as_closure ( ) . kind ( ) == ty :: ClosureKind :: FnMut ; } } } false }
Returns `true` if a closure is inferred to be an `FnMut` closure.
Returns ` true ` if a closure is inferred to be an ` FnMut ` closure .
&self
fr
RegionVid