Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
getweakrefcount
Function · 0.80
Calls
3
weak_ref_list
Method · 0.80
map
Method · 0.45
count
Method · 0.45
Tested by
no test coverage detected