Trait CoverageWriter

Source
pub trait CoverageWriter {
    // Required method
    fn write<W: Write>(
        &self,
        data: &PackageCoverage,
        writer: &mut W,
    ) -> Result<(), Error>;

    // Provided method
    fn write_to_file(
        &self,
        data: &PackageCoverage,
        path: &Path,
    ) -> Result<(), Error> { ... }
}

Required Methods§

Source

fn write<W: Write>( &self, data: &PackageCoverage, writer: &mut W, ) -> Result<(), Error>

save coverage information into the writer

Provided Methods§

Source

fn write_to_file( &self, data: &PackageCoverage, path: &Path, ) -> Result<(), Error>

save coverage information into the 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.

Implementors§

Source§

impl CoverageWriter for LcovParser

Available on crate feature lcov only.