pub trait OutputFormat: Send + Sync {
// Required methods
fn name(&self) -> &'static str;
fn extension(&self) -> &'static str;
fn write(
&self,
result: &AnalysisResult,
options: &OutputOptions,
writer: &mut dyn Write,
) -> Result<()>;
}Expand description
Trait for output formatters.
Required Methods§
Sourcefn write(
&self,
result: &AnalysisResult,
options: &OutputOptions,
writer: &mut dyn Write,
) -> Result<()>
fn write( &self, result: &AnalysisResult, options: &OutputOptions, writer: &mut dyn Write, ) -> Result<()>
Write the analysis result to the writer.