Function out

Source
pub fn out<T>(string: T)
where T: AsRef<str>,
Expand description

Prints the given string using the emscripten-defined out() JS function.

§Arguments

  • string - The string to print.

§Examples

out("Hello, world!");
out(format!("0.1 + 0.2 = {}", 0.1 + 0.2));