pub struct BranchCoverage {
pub line_number: usize,
pub block_number: Option<usize>,
pub taken: Option<bool>,
}
Expand description
Coverage information for a single branch
Fields§
§line_number: usize
1-indexed line in the source file
block_number: Option<usize>
block id which contains this branch
taken: Option<bool>
whether this branch was executed.
None
value is used when the fixer detects non-executable branch.
Trait Implementations§
Source§impl Clone for BranchCoverage
impl Clone for BranchCoverage
Source§fn clone(&self) -> BranchCoverage
fn clone(&self) -> BranchCoverage
Returns a copy 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 BranchCoverage
impl Debug for BranchCoverage
Source§impl PartialEq for BranchCoverage
impl PartialEq for BranchCoverage
impl StructuralPartialEq for BranchCoverage
Auto Trait Implementations§
impl Freeze for BranchCoverage
impl RefUnwindSafe for BranchCoverage
impl Send for BranchCoverage
impl Sync for BranchCoverage
impl Unpin for BranchCoverage
impl UnwindSafe for BranchCoverage
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