pub struct CoverageReport {
pub total: usize,
pub mir_covered: usize,
pub hir_fallback: usize,
}Expand description
How many fns the MIR walker can emit standalone vs how many need HIR fallback. Pre-wire-up signal so callers can track walker reach across the shipped corpus without altering the codegen path.
Fields§
§total: usizeTotal fn count in the lowered program.
mir_covered: usizeFns whose entire body the walker emits standalone
(no None anywhere in the recursive walk).
hir_fallback: usizeFns the walker can’t emit — the recursive walk hit at
least one variant that returned None. Caller would
fall back to the HIR walker in a wire-up.
Implementations§
Trait Implementations§
Source§impl Clone for CoverageReport
impl Clone for CoverageReport
Source§fn clone(&self) -> CoverageReport
fn clone(&self) -> CoverageReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CoverageReport
Source§impl Debug for CoverageReport
impl Debug for CoverageReport
Source§impl Default for CoverageReport
impl Default for CoverageReport
Source§fn default() -> CoverageReport
fn default() -> CoverageReport
Returns the “default value” for a type. Read more
impl Eq for CoverageReport
Source§impl PartialEq for CoverageReport
impl PartialEq for CoverageReport
impl StructuralPartialEq for CoverageReport
Auto Trait Implementations§
impl Freeze for CoverageReport
impl RefUnwindSafe for CoverageReport
impl Send for CoverageReport
impl Sync for CoverageReport
impl Unpin for CoverageReport
impl UnsafeUnpin for CoverageReport
impl UnwindSafe for CoverageReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.