Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ leak
Function
leak
crates/common/src/static_cell.rs:64–66 ·
view source on GitHub ↗
(x: T)
Source
from the content-addressed store, hash-verified
62
}
63
64
fn leak<T>(x: T) -> &'static T {
65
Box::leak(Box::new(x))
66
}
67
68
impl<T> StaticCell<T> {
69
#[doc(hidden)]
Callers
9
js_error
Function · 0.85
make_stdout_object
Function · 0.85
set
Method · 0.85
get_or_init
Method · 0.85
get_or_try_init
Method · 0.85
initialize_main_vm
Function · 0.85
new_method_def
Method · 0.85
from
Method · 0.85
swap
Method · 0.85
Calls
1
new
Function · 0.85
Tested by
no test coverage detected