fn wrap_call_on_any<'a>(
        &mut self, selector: &Selector, mut callback: BoxedCallback<'a>
    ) {
        match selector {
            &Selector::Id(id) if id == self.id => callback(self),
            s => {
                self.view
                    .try_borrow_mut()
                    .ok()
                    .map(|mut v| v.deref_mut().call_on_any(s, callback));
            }
        }
    }
// Some for<'b> weirdness here to please the borrow checker gods...
Some for<'b> weirdness here to please the borrow checker gods
Some for< ' b > weirdness here to please the borrow checker gods
fn wrap_call_on_any<'a>(
        &mut self, selector: &Selector, mut callback: BoxedCallback<'a>
    ) {
        match selector {
            &Selector::Id(id) if id == self.id => callback(self),
            s => {
                self.view
                    .try_borrow_mut()
                    .ok()
                    .map(|mut v| v.deref_mut().call_on_any(s, callback));
            }
        }
    }
fn wrap_call_on_any < ' a > ( & mut self , selector : & Selector , mut callback : BoxedCallback < ' a > ) { match selector { & Selector :: Id ( id ) if id == self . id => callback ( self ) , s => { self . view . try_borrow_mut ( ) . ok ( ) . map ( | mut v | v . deref_mut ( ) . call_on_any ( s , callback ) ) ; } } }
Some for<'b> weirdness here to please the borrow checker gods...
Some for< ' b > weirdness here to please the borrow checker gods ...
&mut self
selector
&Selector
callback
BoxedCallback<'a>
&mut self
selector
&Selector
callback
BoxedCallback<'a>