pub struct FunctionCoverageInfo {
pub function_source_hash: u64,
pub body_span: Span,
pub num_counters: usize,
pub mcdc_bitmap_bits: usize,
pub expressions: IndexVec<ExpressionId, Expression>,
pub mappings: Vec<Mapping>,
pub mcdc_num_condition_bitmaps: usize,
}
Expand description
Stores per-function coverage information attached to a mir::Body
,
to be used in conjunction with the individual coverage statements injected
into the function’s basic blocks.
Fields§
§function_source_hash: u64
§body_span: Span
§num_counters: usize
§mcdc_bitmap_bits: usize
§expressions: IndexVec<ExpressionId, Expression>
§mappings: Vec<Mapping>
§mcdc_num_condition_bitmaps: usize
The depth of the deepest decision is used to know how many temp condbitmaps should be allocated for the function.
Auto Trait Implementations§
impl Freeze for FunctionCoverageInfo
impl RefUnwindSafe for FunctionCoverageInfo
impl Send for FunctionCoverageInfo
impl Sync for FunctionCoverageInfo
impl Unpin for FunctionCoverageInfo
impl UnwindSafe for FunctionCoverageInfo
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