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

Method with

crates/wasm/src/vm_class.rs:166–172  ·  view source on GitHub ↗
(&self, f: F)

Source from the content-addressed store, hash-verified

164 }
165
166 pub(crate) fn with<F, R>(&self, f: F) -> Result<R, JsValue>
167 where
168 F: FnOnce(&StoredVirtualMachine) -> R,
169 {
170 self.assert_valid()?;
171 Ok(self.with_unchecked(f))
172 }
173
174 pub(crate) fn with_vm<F, R>(&self, f: F) -> Result<R, JsValue>
175 where

Callers 15

with_vmMethod · 0.80
newMethod · 0.80
dropMethod · 0.80
_servername_callbackFunction · 0.80
_msg_callbackFunction · 0.80
getMethod · 0.80
setMethod · 0.80
get_or_initMethod · 0.80
get_or_try_initMethod · 0.80
dropMethod · 0.80
with_deferred_dropsFunction · 0.80

Calls 2

assert_validMethod · 0.80
with_uncheckedMethod · 0.80

Tested by

no test coverage detected