[][src]Struct rust_covfix::FileCoverage

pub struct FileCoverage { /* fields omitted */ }

Coverage information for a single file

FileCoverage holds coverage information for lines and branches in the source file.

Implementations

impl FileCoverage[src]

pub fn new<P: Into<PathBuf>>(
    path: P,
    line_coverages: Vec<LineCoverage>,
    branch_coverages: Vec<BranchCoverage>
) -> Self
[src]

pub fn path(&self) -> &Path[src]

pub fn line_coverages(&self) -> &[LineCoverage][src]

pub fn branch_coverages(&self) -> &[BranchCoverage][src]

Trait Implementations

impl Debug for FileCoverage[src]

impl PartialEq<FileCoverage> for FileCoverage[src]

impl StructuralPartialEq for FileCoverage[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.