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

Method pop_stackref_opt

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

Source from the content-addressed store, hash-verified

9344 /// Pop a raw stackref from the stack, returning None if the stack slot is NULL.
9345 #[inline]
9346 fn pop_stackref_opt(&mut self) -> Option<PyStackRef> {
9347 if self.localsplus.stack_is_empty() {
9348 self.fatal("tried to pop from empty stack");
9349 }
9350 self.localsplus.stack_pop()
9351 }
9352
9353 /// Pop a raw stackref from the stack. Panics if NULL.
9354 #[inline]

Callers 2

pop_stackrefMethod · 0.80
pop_value_optMethod · 0.80

Calls 3

stack_is_emptyMethod · 0.80
stack_popMethod · 0.80
fatalMethod · 0.45

Tested by

no test coverage detected