pub(crate) fn with_current(&mut self, e: Entity, f: impl FnOnce(&mut Context)) {
        let prev = self.current;
        self.current = e;
        f(self);
        self.current = prev;
    }
/// Makes the above black magic more explicit
Makes the above black magic more explicit
Makes the above black magic more explicit
pub(crate) fn with_current(&mut self, e: Entity, f: impl FnOnce(&mut Context)) {
        let prev = self.current;
        self.current = e;
        f(self);
        self.current = prev;
    }
pub ( crate ) fn with_current ( & mut self , e : Entity , f : impl FnOnce ( & mut Context ) ) { let prev = self . current ; self . current = e ; f ( self ) ; self . current = prev ; }
Makes the above black magic more explicit
Makes the above black magic more explicit
&mut self
e
Entity
f
impl FnOnce(&mut Context)