pub trait Formatter {
// Required method
fn format(&self, result: &LintResult) -> String;
// Provided method
fn supports_color(&self) -> bool { ... }
}Required Methods§
fn format(&self, result: &LintResult) -> String
Provided Methods§
fn supports_color(&self) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".