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

Method as_ref

crates/vm/src/object/ext.rs:93–95  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

91impl<T: PyPayload> AsRef<PyObject> for PyExact<T> {
92 #[inline(always)]
93 fn as_ref(&self) -> &PyObject {
94 self.inner.as_ref()
95 }
96}
97
98impl<T: PyPayload> Borrow<Py<T>> for PyExact<T> {

Callers 6

traverseMethod · 0.45
fmtMethod · 0.45
derefMethod · 0.45
deref_orderingMethod · 0.45
swapMethod · 0.45
borrowMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected