pub struct FileCoverage { /* private fields */ }
Expand description
Coverage information for a single file
FileCoverage
holds coverage information for lines and branches in the source file.
Implementations§
Source§impl FileCoverage
impl FileCoverage
pub fn new<P: Into<PathBuf>>( path: P, line_coverages: Vec<LineCoverage>, branch_coverages: Vec<BranchCoverage>, ) -> Self
pub fn path(&self) -> &Path
pub fn line_coverages(&self) -> &[LineCoverage]
pub fn branch_coverages(&self) -> &[BranchCoverage]
Trait Implementations§
Source§impl Debug for FileCoverage
impl Debug for FileCoverage
Source§impl PartialEq for FileCoverage
impl PartialEq for FileCoverage
impl StructuralPartialEq for FileCoverage
Auto Trait Implementations§
impl Freeze for FileCoverage
impl RefUnwindSafe for FileCoverage
impl Send for FileCoverage
impl Sync for FileCoverage
impl Unpin for FileCoverage
impl UnwindSafe for FileCoverage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more