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

Method fastlocals_mut

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

Source from the content-addressed store, hash-verified

272 /// Mutable access to fastlocals as `Option<PyObjectRef>` slice.
273 #[inline(always)]
274 fn fastlocals_mut(&mut self) -> &mut [Option<PyObjectRef>] {
275 let nlocalsplus = self.nlocalsplus as usize;
276 let data = self.data_as_mut_slice();
277 let ptr = data.as_mut_ptr() as *mut Option<PyObjectRef>;
278 unsafe { core::slice::from_raw_parts_mut(ptr, nlocalsplus) }
279 }
280
281 // -- Stack access --
282

Callers 8

drop_valuesMethod · 0.80
newMethod · 0.80
locals_to_fastMethod · 0.80
execute_instructionMethod · 0.80
fill_locals_from_argsMethod · 0.80
clearMethod · 0.80

Calls 3

data_as_mut_sliceMethod · 0.80
as_mut_ptrMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected