pub struct IstanbulCoverage { /* private fields */ }Expand description
Loaded Istanbul coverage data, keyed by canonical file path.
Implementations§
Source§impl IstanbulCoverage
impl IstanbulCoverage
Sourcepub fn get(&self, path: &Path) -> Option<&IstanbulFileCoverage>
pub fn get(&self, path: &Path) -> Option<&IstanbulFileCoverage>
Get coverage data for a file path.
Sourcepub fn file_count(&self) -> usize
pub fn file_count(&self) -> usize
How many files the coverage map describes, joined or not.
Sourcepub const fn format(&self) -> CoverageInputFormat
pub const fn format(&self) -> CoverageInputFormat
The input format the coverage was read from.
Auto Trait Implementations§
impl Freeze for IstanbulCoverage
impl RefUnwindSafe for IstanbulCoverage
impl Send for IstanbulCoverage
impl Sync for IstanbulCoverage
impl Unpin for IstanbulCoverage
impl UnsafeUnpin for IstanbulCoverage
impl UnwindSafe for IstanbulCoverage
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more