MCPcopy Index your code
hub / github.com/RustPython/RustPython / current_frame

Method current_frame

crates/vm/src/vm/mod.rs:1735–1740  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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()

Callers 12

setup_contextFunction · 0.80
_trace_event_innerMethod · 0.80
text_encodingFunction · 0.80
py_newMethod · 0.80
callerFunction · 0.80
newMethod · 0.80
slot_newMethod · 0.80
initMethod · 0.80
current_localsMethod · 0.80
current_globalsMethod · 0.80
import_innerMethod · 0.80

Calls 5

mapMethod · 0.45
lastMethod · 0.45
borrowMethod · 0.45
to_ownedMethod · 0.45
as_refMethod · 0.45

Tested by

no test coverage detected