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

Method as_object

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

Source from the content-addressed store, hash-verified

1918 /// Get a `&PyObject` reference. Works for both owned and borrowed.
1919 #[inline(always)]
1920 pub fn as_object(&self) -> &PyObject {
1921 unsafe { &*((self.bits.get() & !STACKREF_BORROW_TAG) as *const PyObject) }
1922 }
1923
1924 /// Convert to an owned `PyObjectRef`.
1925 ///

Callers 15

struct_sequence_iterFunction · 0.45
struct_sequence_hashFunction · 0.45
slot_initMethod · 0.45
dirMethod · 0.45
is_subclassMethod · 0.45
into_iterMethod · 0.45
subscriptMethod · 0.45
ass_subscriptMethod · 0.45
powFunction · 0.45
ipowFunction · 0.45
repr_wtf8Method · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected