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

Method weak_count

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

Source from the content-addressed store, hash-verified

1538
1539 #[inline]
1540 pub fn weak_count(&self) -> Option<usize> {
1541 self.weak_ref_list().map(|wrl| wrl.count(self))
1542 }
1543
1544 #[inline(always)]
1545 pub const fn as_raw(&self) -> *const Self {

Callers 1

getweakrefcountFunction · 0.80

Calls 3

weak_ref_listMethod · 0.80
mapMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected