pub trait Logger: Debug {
// Required methods
fn debug(&self, location: SpanLoc, message: &str);
fn warn(&self, location: SpanLoc, message: &str);
}Expand description
A trait to allow replacing logging mechanisms
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".