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

Method get

crates/wasm/src/vm_class.rs:126–131  ·  view source on GitHub ↗
(id: String)

Source from the content-addressed store, hash-verified

124 }
125
126 pub fn get(id: String) -> JsValue {
127 match Self::_get(id) {
128 Some(wasm_vm) => wasm_vm.into(),
129 None => JsValue::UNDEFINED,
130 }
131 }
132
133 pub fn destroy(id: String) {
134 STORED_VMS.with_borrow_mut(|vms| {

Callers 5

destroyedMethod · 0.45
detachedMethod · 0.45
stored_vm_from_wasmFunction · 0.45
weak_vmFunction · 0.45
syntax_errFunction · 0.45

Calls 1

_getFunction · 0.85

Tested by

no test coverage detected