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

Method into_js

crates/wasm/src/convert.rs:286–288  ·  view source on GitHub ↗
(self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

284}
285impl<T> PyResultExt<T> for PyResult<T> {
286 fn into_js(self, vm: &VirtualMachine) -> Result<T, JsValue> {
287 self.map_err(|err| py_err_to_js_err(vm, &err))
288 }
289}

Callers 3

add_to_scopeMethod · 0.80
inject_moduleMethod · 0.80
inject_js_moduleMethod · 0.80

Calls 1

py_err_to_js_errFunction · 0.85

Tested by

no test coverage detected