(&self)
| 1733 | } |
| 1734 | |
| 1735 | pub fn current_frame(&self) -> Option<FrameRef> { |
| 1736 | self.frames.borrow().last().map(|fp| { |
| 1737 | // SAFETY: the caller keeps the FrameRef alive while it's in the Vec |
| 1738 | unsafe { fp.as_ref() }.to_owned() |
| 1739 | }) |
| 1740 | } |
| 1741 | |
| 1742 | pub fn current_locals(&self) -> PyResult<ArgMapping> { |
| 1743 | self.current_frame() |
no test coverage detected