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

Method new

crates/wasm/src/js_module.rs:95–98  ·  view source on GitHub ↗
(value: impl Into<JsValue>)

Source from the content-addressed store, hash-verified

93 impl PyJsValue {
94 #[inline]
95 pub fn new(value: impl Into<JsValue>) -> PyJsValue {
96 let value = value.into();
97 PyJsValue { value }
98 }
99
100 #[pymethod]
101 fn null(&self) -> PyJsValue {

Callers

nothing calls this directly

Calls 15

stored_vm_from_wasmFunction · 0.85
newFunction · 0.85
pyresult_to_js_resultFunction · 0.85
onceFunction · 0.85
push_held_rcMethod · 0.80
assert_validMethod · 0.80
ErrClass · 0.50
wrapFunction · 0.50
SomeClass · 0.50
unwrapMethod · 0.45
cloneMethod · 0.45
upgradeMethod · 0.45

Tested by

no test coverage detected