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

Method is_borrowed

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

Source from the content-addressed store, hash-verified

1912 /// Whether this is a borrowed (non-owning) reference.
1913 #[inline(always)]
1914 pub fn is_borrowed(&self) -> bool {
1915 self.bits.get() & STACKREF_BORROW_TAG != 0
1916 }
1917
1918 /// Get a `&PyObject` reference. Works for both owned and borrowed.
1919 #[inline(always)]

Callers 4

to_pyobjMethod · 0.45
promoteMethod · 0.45
dropMethod · 0.45
fmtMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected