pub struct CoverageInfoHi {
pub num_block_markers: usize,
pub branch_spans: Vec<BranchSpan>,
pub mcdc_degraded_branch_spans: Vec<MCDCBranchSpan>,
pub mcdc_spans: Vec<(MCDCDecisionSpan, Vec<MCDCBranchSpan>)>,
}
Expand description
Coverage information for a function, recorded during MIR building and
attached to the corresponding mir::Body
. Used by the InstrumentCoverage
MIR pass.
(“Hi” indicates that this is “high-level” information collected at the THIR/MIR boundary, before the MIR-based coverage instrumentation pass.)
Fields§
§num_block_markers: usize
1 more than the highest-numbered CoverageKind::BlockMarker
that was
injected into the MIR body. This makes it possible to allocate per-ID
data structures without having to scan the entire body first.
branch_spans: Vec<BranchSpan>
§mcdc_degraded_branch_spans: Vec<MCDCBranchSpan>
Branch spans generated by mcdc. Because of some limits mcdc builder give up generating decisions including them so that they are handled as normal branch spans.
mcdc_spans: Vec<(MCDCDecisionSpan, Vec<MCDCBranchSpan>)>
Auto Trait Implementations§
impl Freeze for CoverageInfoHi
impl RefUnwindSafe for CoverageInfoHi
impl Send for CoverageInfoHi
impl Sync for CoverageInfoHi
impl Unpin for CoverageInfoHi
impl UnwindSafe for CoverageInfoHi
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