Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ as_ref
Method
as_ref
crates/vm/src/object/core.rs:1826–1828 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
1824
impl AsRef<PyObject> for PyObjectRef {
1825
#[inline(always)]
1826
fn as_ref(&self) -> &PyObject {
1827
self
1828
}
1829
}
1830
1831
impl<
'a, T: PyPayload> From<&'
a Py<T>> for &'a PyObject {
Callers
10
unlink_weakref
Function · 0.45
add
Method · 0.45
clear
Method · 0.45
clear_for_gc_collect_callbacks
Method · 0.45
count
Method · 0.45
get_weak_references
Method · 0.45
deref
Method · 0.45
instance_dict
Method · 0.45
drop_slow
Method · 0.45
leak
Method · 0.45
Calls
1
borrow
Method · 0.45
Tested by
no test coverage detected