Skip to main content

SourceFormatter

Trait SourceFormatter 

Source
pub trait SourceFormatter {
    // Provided method
    fn run(&self, source_files: &[&str]) -> Result<()> { ... }
}
Expand description

Formats source code

Provided Methods§

Source

fn run(&self, source_files: &[&str]) -> Result<()>

run formatter on all files Default implementation does nothing

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§