pub trait CoverageReporter {
// Required methods
fn name(&self) -> &'static str;
fn report(&mut self, report: &CoverageReport) -> Result<()>;
// Provided method
fn needs_source_maps(&self) -> bool { ... }
}Expand description
A coverage reporter.
Required Methods§
Sourcefn report(&mut self, report: &CoverageReport) -> Result<()>
fn report(&mut self, report: &CoverageReport) -> Result<()>
Runs the reporter.
Provided Methods§
Sourcefn needs_source_maps(&self) -> bool
fn needs_source_maps(&self) -> bool
Returns true if the reporter needs source maps for the final report.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".