pub struct FileCoverageStats {
pub lines_total: usize,
pub lines_covered: usize,
pub lines_missed: usize,
pub line_coverage_percent: f64,
pub branches_total: Option<usize>,
pub branches_covered: Option<usize>,
pub branch_coverage_percent: Option<f64>,
}Fields§
§lines_total: usize§lines_covered: usize§lines_missed: usize§line_coverage_percent: f64§branches_total: Option<usize>§branches_covered: Option<usize>§branch_coverage_percent: Option<f64>Implementations§
Source§impl FileCoverageStats
impl FileCoverageStats
pub fn new() -> Self
pub fn calculate_percentages(&mut self)
Trait Implementations§
Source§impl Clone for FileCoverageStats
impl Clone for FileCoverageStats
Source§fn clone(&self) -> FileCoverageStats
fn clone(&self) -> FileCoverageStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileCoverageStats
impl Debug for FileCoverageStats
Source§impl Default for FileCoverageStats
impl Default for FileCoverageStats
Source§impl<'de> Deserialize<'de> for FileCoverageStats
impl<'de> Deserialize<'de> for FileCoverageStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FileCoverageStats
impl RefUnwindSafe for FileCoverageStats
impl Send for FileCoverageStats
impl Sync for FileCoverageStats
impl Unpin for FileCoverageStats
impl UnwindSafe for FileCoverageStats
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