MCPcopy 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
372impl<T> PointerSlot<T> {
373 pub const unsafe fn borrow_static(&self) -> &'static T {
374 unsafe { self.0.as_ref() }
375 }
376}
377
378impl<T> Clone for PointerSlot<T> {

Callers 2

__objclass__Method · 0.80
repr_strMethod · 0.80

Calls 1

as_refMethod · 0.45

Tested by

no test coverage detected