(&mut self)
| 275 | } |
| 276 | |
| 277 | fn current_frame_mut(&mut self) -> &mut Frame<'a> { |
| 278 | let num_frames = self.frame_stack.len(); |
| 279 | match num_frames { |
| 280 | 0 => panic!("unable to retrieve the current frame because no frames were pushed"), |
| 281 | _ => &mut self.frame_stack[num_frames - 1], |
| 282 | } |
| 283 | } |
| 284 | |
| 285 | fn current_frame(&self) -> &Frame<'a> { |
| 286 | let num_frames = self.frame_stack.len(); |