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

Method value

crates/wasm/src/js_module.rs:343–348  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

341
342 #[pygetset]
343 fn value(&self) -> Option<PyJsValueRef> {
344 self.closure
345 .borrow()
346 .as_ref()
347 .map(|(_, js_val)| js_val.clone())
348 }
349 #[pygetset]
350 fn destroyed(&self) -> bool {
351 self.destroyed.get()

Callers

nothing calls this directly

Calls 4

mapMethod · 0.45
as_refMethod · 0.45
borrowMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected