Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ set
Method
set
crates/common/src/static_cell.rs:19–21 ·
view source on GitHub ↗
(&'static self, value: T)
Source
from the content-addressed store, hash-verified
17
}
18
19
pub fn set(&'static self, value: T) -> Result<(), T> {
20
self.inner.set(value)
21
}
22
23
pub fn get_or_init<F>(&
'static self, f: F) -> &'
static T
24
where
Callers
1
get_or_try_init
Method · 0.45
Calls
4
leak
Function · 0.85
with
Method · 0.80
Err
Class · 0.50
get
Method · 0.45
Tested by
no test coverage detected