pub trait Reporter {
// Required method
fn generate(&self, report: &EvalReport) -> Result<String>;
// Provided method
fn write_to_file(
&self,
report: &EvalReport,
path: impl AsRef<Path>,
) -> Result<()> { ... }
}Expand description
Reporter trait
Required Methods§
Sourcefn generate(&self, report: &EvalReport) -> Result<String>
fn generate(&self, report: &EvalReport) -> Result<String>
Generate report
Provided Methods§
Sourcefn write_to_file(
&self,
report: &EvalReport,
path: impl AsRef<Path>,
) -> Result<()>
fn write_to_file( &self, report: &EvalReport, path: impl AsRef<Path>, ) -> Result<()>
Write report to file
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.