Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ with_leaked
Method
with_leaked
crates/common/src/refcount.rs:63–65 ·
view source on GitHub ↗
(self, leaked: bool)
Source
from the content-addressed store, hash-verified
61
62
#[inline]
63
fn with_leaked(self, leaked: bool) -> Self {
64
Self::from_raw((self.inner & !LEAKED) | if leaked { LEAKED } else { 0 })
65
}
66
}
67
68
/// Reference count using state layout with LEAKED support.
Callers
1
leak
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected