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

Function weak_vm

crates/wasm/src/vm_class.rs:100–103  ·  view source on GitHub ↗
(vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

98 })
99}
100pub(crate) fn weak_vm(vm: &VirtualMachine) -> Weak<StoredVirtualMachine> {
101 let id = get_vm_id(vm);
102 STORED_VMS.with_borrow(|vms| Rc::downgrade(vms.get(id).expect("VirtualMachine is not valid")))
103}
104
105#[derive(Clone, Copy)]
106#[wasm_bindgen(js_name = vmStore)]

Callers 3

thenMethod · 0.85
request_animation_frameFunction · 0.85
load_moduleFunction · 0.85

Calls 2

get_vm_idFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected