Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ borrow_static
Method
borrow_static
crates/vm/src/builtins/type.rs:373–375 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
371
372
impl<T> PointerSlot<T> {
373
pub const unsafe fn borrow_static(&self) -> &'static T {
374
unsafe { self.0.as_ref() }
375
}
376
}
377
378
impl<T> Clone for PointerSlot<T> {
Callers
2
__objclass__
Method · 0.80
repr_str
Method · 0.80
Calls
1
as_ref
Method · 0.45
Tested by
no test coverage detected