2024-09-21 18:25:42 +01:00
|
|
|
//
|
|
|
|
pub trait Printer {
|
|
|
|
fn println(&self, message: impl Into<String>);
|
|
|
|
}
|
|
|
|
|
|
|
|
pub struct StandardPrinter;
|
|
|
|
impl Printer for StandardPrinter {
|
2024-09-21 18:44:40 +01:00
|
|
|
#[cfg(not(tarpaulin_include))]
|
2024-09-21 18:25:42 +01:00
|
|
|
fn println(&self, message: impl Into<String>) {
|
|
|
|
println!("{}", message.into());
|
|
|
|
}
|
|
|
|
}
|