Skip to main content

Formatter

Trait Formatter 

Source
pub trait Formatter {
    // Required method
    fn format(&self, result: &LintResult) -> String;

    // Provided method
    fn supports_color(&self) -> bool { ... }
}

Required Methods§

Source

fn format(&self, result: &LintResult) -> String

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§