Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
1204
impl PyObject {
Callers
4
clone
Method · 0.45
downgrade
Method · 0.45
gc_get_referents
Method · 0.45
to_pyobj
Method · 0.45
Calls
1
inc
Method · 0.45
Tested by
no test coverage detected