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

Method as_str

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

Source from the content-addressed store, hash-verified

232
233 #[pymethod]
234 fn as_str(&self) -> Option<String> {
235 self.value.as_string()
236 }
237
238 #[pymethod]
239 fn as_float(&self) -> Option<f64> {

Callers 5

promptFunction · 0.45
set_stdoutMethod · 0.45
inject_moduleMethod · 0.45
js_err_to_py_errFunction · 0.45
js_to_pyFunction · 0.45

Calls 1

as_stringMethod · 0.45

Tested by

no test coverage detected