Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ get
Method
get
crates/common/src/static_cell.rs:15–17 ·
view source on GitHub ↗
(&'static self)
Source
from the content-addressed store, hash-verified
13
}
14
15
pub fn get(&
'static self) -> Option<&'
static T> {
16
self.inner.get()
17
}
18
19
pub fn set(&'static self, value: T) -> Result<(), T> {
20
self.inner.set(value)
Callers
2
get_or_try_init
Method · 0.45
set
Method · 0.45
Calls
1
with
Method · 0.80
Tested by
no test coverage detected