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

Method cell_ref

crates/vm/src/frame.rs:1386–1393  ·  view source on GitHub ↗
(&self, localsplus_idx: usize)

Source from the content-addressed store, hash-verified

1384 /// Access the PyCellRef at the given localsplus index.
1385 #[inline(always)]
1386 fn cell_ref(&self, localsplus_idx: usize) -> &PyCell {
1387 let fastlocals = self.localsplus.fastlocals();
1388 let slot = &fastlocals[localsplus_idx];
1389 slot.as_ref()
1390 .expect("cell slot empty")
1391 .downcast_ref::<PyCell>()
1392 .expect("cell slot is not a PyCell")
1393 }
1394
1395 /// Perform deferred stack unwinding after set_f_lineno.
1396 ///

Callers 1

execute_instructionMethod · 0.80

Calls 2

fastlocalsMethod · 0.80
as_refMethod · 0.45

Tested by

no test coverage detected