MCPcopy 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

1824impl AsRef<PyObject> for PyObjectRef {
1825 #[inline(always)]
1826 fn as_ref(&self) -> &PyObject {
1827 self
1828 }
1829}
1830
1831impl<'a, T: PyPayload> From<&'a Py<T>> for &'a PyObject {

Callers 10

unlink_weakrefFunction · 0.45
addMethod · 0.45
clearMethod · 0.45
countMethod · 0.45
get_weak_referencesMethod · 0.45
derefMethod · 0.45
instance_dictMethod · 0.45
drop_slowMethod · 0.45
leakMethod · 0.45

Calls 1

borrowMethod · 0.45

Tested by

no test coverage detected