MCPcopy 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_initMethod · 0.45

Calls 4

leakFunction · 0.85
withMethod · 0.80
ErrClass · 0.50
getMethod · 0.45

Tested by

no test coverage detected