Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
prompt
Function · 0.45
set_stdout
Method · 0.45
inject_module
Method · 0.45
js_err_to_py_err
Function · 0.45
js_to_py
Function · 0.45
Calls
1
as_string
Method · 0.45
Tested by
no test coverage detected