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

Method into_js_value

crates/wasm/src/js_module.rs:84–89  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

82
83 impl JsProperty {
84 fn into_js_value(self) -> JsValue {
85 match self {
86 JsProperty::Str(s) => s.expect_str().into(),
87 JsProperty::Js(value) => value.value.clone(),
88 }
89 }
90 }
91
92 #[pyclass(with(Representable))]

Callers 4

has_propMethod · 0.80
get_propMethod · 0.80
set_propMethod · 0.80
call_methodMethod · 0.80

Calls 2

expect_strMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected