{"ast_node_type":"function","tokens":[{"end":98,"kind":"keyword","start":0,"text":"fn"}]}
    fn with_is_consumed_management(&mut self, curr_is_consumed: bool, f: impl FnOnce(&mut Self)) {
    // sets the internal `is_consumed` back to its original value.
        let prev_is_consumed = self.is_consumed;