// Adding and removing scopes
// ==========================
/// Start a loop scope, which tracks where `continue` and `break`
/// should branch to. See module comment for more details.
///
/// Returns the might_break attribute of the LoopScope used.
Adding and removing scopes
Start a loop scope, which tracks where `continue` and `break`
should branch to. See module comment for more details.

Returns the might_break attribute of the LoopScope used.
Adding and removing scopes Start a loop scope which tracks where ` continue ` and ` break ` should branch to . See module comment for more details . Returns the might_break attribute of the LoopScope used .
pub fn in_loop_scope<F>(&mut self,
                               loop_block: BasicBlock,
                               break_block: BasicBlock,
                               f: F)
                               -> bool
        where F: FnOnce(&mut Builder<'a, 'gcx, 'tcx>)
    {
        let extent = self.extent_of_innermost_scope();
        let loop_scope = LoopScope {
            extent: extent.clone(),
            continue_block: loop_block,
            break_block: break_block,
            might_break: false
        };
        self.loop_scopes.push(loop_scope);
        f(self);
        let loop_scope = self.loop_scopes.pop().unwrap();
        assert!(loop_scope.extent == extent);
        loop_scope.might_break
    }
pub fn in_loop_scope < F > ( & mut self , loop_block : BasicBlock , break_block : BasicBlock , f : F ) -> bool where F : FnOnce ( & mut Builder < ' a , ' gcx , ' tcx > ) { let extent = self . extent_of_innermost_scope ( ) ; let loop_scope = LoopScope { extent : extent . clone ( ) , continue_block : loop_block , break_block : break_block , might_break : false } ; self . loop_scopes . push ( loop_scope ) ; f ( self ) ; let loop_scope = self . loop_scopes . pop ( ) . unwrap ( ) ; assert ! ( loop_scope extent extent ) ; loop_scope . might_break }
Adding and removing scopes
Start a loop scope, which tracks where `continue` and `break`
should branch to.
Adding and removing scopes Start a loop scope which tracks where ` continue ` and ` break ` should branch to .
&mut self
loop_block
BasicBlock
break_block
BasicBlock
f
F