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

Method to_owned

crates/vm/src/object/core.rs:1196–1201  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1194
1195 #[inline(always)]
1196 fn to_owned(&self) -> Self::Owned {
1197 self.0.ref_count.inc();
1198 PyObjectRef {
1199 ptr: NonNull::from(self),
1200 }
1201 }
1202}
1203
1204impl PyObject {

Callers 4

cloneMethod · 0.45
downgradeMethod · 0.45
gc_get_referentsMethod · 0.45
to_pyobjMethod · 0.45

Calls 1

incMethod · 0.45

Tested by

no test coverage detected