daisy/src/formattedtext/wasm_backend.rs

12 lines
188 B
Rust

use super::FormattedText;
impl FormattedText {
pub fn newline() -> Result<(), ()> {
print!("\n");
return Ok(());
}
pub fn write(&self) -> String {
return self.text.clone();
}
}