MCPcopy Index your code
hub / github.com/RustPython/RustPython / get_inner

Method get_inner

crates/stdlib/src/contextvars.rs:149–152  ·  view source on GitHub ↗
(&self, needle: &Py<ContextVar>)

Source from the content-addressed store, hash-verified

147 }
148
149 fn get_inner(&self, needle: &Py<ContextVar>) -> Option<PyObjectRef> {
150 let vars = self.borrow_vars();
151 vars.get(needle).map(|o| o.to_owned())
152 }
153 }
154
155 #[pyclass(with(Constructor, AsMapping, AsSequence, Iterable))]

Callers 1

getMethod · 0.45

Calls 4

borrow_varsMethod · 0.80
mapMethod · 0.45
getMethod · 0.45
to_ownedMethod · 0.45

Tested by

no test coverage detected