pub struct ResolutionStats {
pub scope: usize,
pub import: usize,
pub scip: usize,
pub unresolved_internal: usize,
pub unresolved_external: usize,
pub scip_agree: usize,
pub scip_disagree: usize,
pub scip_external: usize,
}Fields§
§scope: usize§import: usize§scip: usize§unresolved_internal: usizeEvidence pointed into the corpus but binding failed (ambiguity, member missing on a known module/type). The accuracy gauge.
unresolved_external: usizeNo corpus-anchored evidence: external imports, builtins, and value-receiver calls without type evidence. Dependency-index (SCIP) territory, not a resolver defect.
scip_agree: usizeReferences bound by both internal evidence and SCIP, split by whether the two agreed on the target — the measured trust level of non-scip edges.
scip_disagree: usize§scip_external: usizeRefs bound to synthesized dependency-surface nodes (D29). Counted
apart from scip and excluded from the cross-check and recall
denominators: internal evidence can never find a symbol with no
in-corpus definition, so mixing these in would fake a regression.
Implementations§
Source§impl ResolutionStats
impl ResolutionStats
pub fn resolved(&self) -> usize
pub fn unresolved(&self) -> usize
pub fn unresolved_rate(&self) -> f64
Sourcepub fn internal_unresolved_rate(&self) -> f64
pub fn internal_unresolved_rate(&self) -> f64
Internal-unresolved over corpus-anchored references — the number that measures resolver accuracy rather than corpus openness. Dep-surface binds are excluded from the denominator: they are not corpus-anchored, and counting them would flatter the gauge.
Trait Implementations§
Source§impl Clone for ResolutionStats
impl Clone for ResolutionStats
Source§fn clone(&self) -> ResolutionStats
fn clone(&self) -> ResolutionStats
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ResolutionStats
Source§impl Debug for ResolutionStats
impl Debug for ResolutionStats
Source§impl Default for ResolutionStats
impl Default for ResolutionStats
Source§fn default() -> ResolutionStats
fn default() -> ResolutionStats
impl Eq for ResolutionStats
Source§impl PartialEq for ResolutionStats
impl PartialEq for ResolutionStats
impl StructuralPartialEq for ResolutionStats
Auto Trait Implementations§
impl Freeze for ResolutionStats
impl RefUnwindSafe for ResolutionStats
impl Send for ResolutionStats
impl Sync for ResolutionStats
impl Unpin for ResolutionStats
impl UnsafeUnpin for ResolutionStats
impl UnwindSafe for ResolutionStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more