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

Method pop_value_opt

crates/vm/src/frame.rs:9366–9368  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

9364 /// Automatically promotes borrowed refs to owned.
9365 #[inline]
9366 fn pop_value_opt(&mut self) -> Option<PyObjectRef> {
9367 self.pop_stackref_opt().map(|sr| sr.to_pyobj())
9368 }
9369
9370 #[inline]
9371 #[track_caller]

Callers 6

execute_instructionMethod · 0.80
collect_ex_argsMethod · 0.80
execute_callMethod · 0.80

Calls 3

pop_stackref_optMethod · 0.80
to_pyobjMethod · 0.80
mapMethod · 0.45

Tested by

no test coverage detected