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

Method into_raw

crates/vm/src/object/core.rs:1246–1250  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1244impl PyObjectRef {
1245 #[inline(always)]
1246 pub const fn into_raw(self) -> NonNull<PyObject> {
1247 let ptr = self.ptr;
1248 core::mem::forget(self);
1249 ptr
1250 }
1251
1252 /// # Safety
1253 /// The raw pointer must have been previously returned from a call to

Callers 5

initMethod · 0.45
to_pyobjectMethod · 0.45
fromMethod · 0.45
swapMethod · 0.45
new_ownedMethod · 0.45

Calls 1

forgetFunction · 0.85

Tested by

no test coverage detected