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

Method drop_slow

crates/vm/src/object/core.rs:1654–1657  ·  view source on GitHub ↗
(ptr: NonNull<Self>)

Source from the content-addressed store, hash-verified

1652 /// _Py_Dealloc: dispatch to type's dealloc
1653 #[inline(never)]
1654 unsafe fn drop_slow(ptr: NonNull<Self>) {
1655 let dealloc = unsafe { ptr.as_ref().0.vtable.dealloc };
1656 unsafe { dealloc(ptr.as_ptr()) }
1657 }
1658
1659 /// # Safety
1660 /// This call will make the object live forever.

Callers

nothing calls this directly

Calls 2

as_refMethod · 0.45
as_ptrMethod · 0.45

Tested by

no test coverage detected