pub(super) struct CoverageCounters {
    function_source_hash: u64,
    next_counter_id: u32,
    num_expressions: u32,
    pub debug_counters: DebugCounters,
}
Expand description

Manages the counter and expression indexes/IDs to generate CoverageKind components for MIR Coverage statements.

Fields§

§function_source_hash: u64§next_counter_id: u32§num_expressions: u32§debug_counters: DebugCounters

Implementations§

Activate the DebugCounters data structures, to provide additional debug formatting features when formatting CoverageKind (counter) values.

Makes CoverageKind Counters and Expressions for the BasicCoverageBlocks directly or indirectly associated with CoverageSpans, and returns additional Expressions representing intermediate values.

Counter IDs start from one and go up.

Expression IDs start from u32::MAX and go down because an Expression can reference (add or subtract counts) of both Counter regions and Expression regions. The counter expression operand IDs must be unique across both types.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.

Size: 48 bytes