Trait CoverageReader

Source
pub trait CoverageReader {
    // Required method
    fn read<R: BufRead>(&self, reader: &mut R) -> Result<PackageCoverage, Error>;

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

Required Methods§

Source

fn read<R: BufRead>(&self, reader: &mut R) -> Result<PackageCoverage, Error>

fetch the coverage information from the reader

Provided Methods§

Source

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

fetch the coverage information from 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 CoverageReader for LcovParser

Available on crate feature lcov only.