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

Calls 1

withMethod · 0.80

Tested by

no test coverage detected