{"ast_node_type":"function","tokens":[{"end":87,"kind":"keyword","start":0,"text":"fn"}]}
    fn with_res<T>(&mut self, res: Restrictions, f: impl FnOnce(&mut Self) -> T) -> T {
    /// Afters the closure is evaluated, restrictions are reset.
        let old = self.restrictions;