Skip to main content

write_stdout_str

Function write_stdout_str 

Source
pub fn write_stdout_str(s: &str)
Expand description

Capture-aware println!-equivalent — embedders that bypass the Console.print builtin (currently the wasm-gc backend’s import handler in runtime::wasm_gc::imports::lm) should call this instead of raw println! so the thread-local capture_output buffer sees their writes too.