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

Method borrow_vars_mut

crates/stdlib/src/contextvars.rs:86–88  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

84 }
85
86 fn borrow_vars_mut(&self) -> impl core::ops::DerefMut<Target = Hamt> + '_ {
87 self.inner.vars.hamt.borrow_mut()
88 }
89
90 fn enter(zelf: &Py<Self>, vm: &VirtualMachine) -> PyResult<()> {
91 if zelf.inner.entered.get() {

Callers 2

deleteMethod · 0.80
set_innerMethod · 0.80

Calls 1

borrow_mutMethod · 0.80

Tested by

no test coverage detected