1 2 3 4 5 6 7 8 9 10 11
pub struct Logger {} impl Logger { pub fn new() -> Self { Self {} } pub fn log_error(&mut self, str: String) { eprintln!("{}", str); } }