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

Method is_interned

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

Source from the content-addressed store, hash-verified

1663 }
1664
1665 pub(crate) fn is_interned(&self) -> bool {
1666 self.0.ref_count.is_leaked()
1667 }
1668
1669 pub(crate) fn get_slot(&self, offset: usize) -> Option<PyObjectRef> {
1670 self.0.ext_ref().unwrap().slots[offset].read().clone()

Callers 2

as_internedMethod · 0.80
as_interned_strMethod · 0.80

Calls 1

is_leakedMethod · 0.80

Tested by

no test coverage detected