1 2 3 4 5 6 7 8 9 10 11 12 13 14
use std::io::{self as stdio, Write}; pub fn print(s: &str) { println!("{}", s); } pub fn eprint(s: &str) { eprint!("{}", s); stdio::stdout().flush().unwrap(); } pub fn eprintln(s: &str) { eprintln!("{}", s); }