pub enum Confidence {
Heuristic,
NameOnly,
Scoped,
Exact,
}Expand description
How confident the resolver is in an Edge — the precision marker that lets
consumers (e.g. a quality analyzer) gate on resolution quality.
Variants are ordered from least to most precise:
Heuristic < NameOnly < Scoped < Exact.
More-precise compares greater, so consumers can write threshold filters such
as edge.confidence >= Confidence::Scoped to drop NameOnly edges, or
edge.confidence >= Confidence::NameOnly to drop the lowest Heuristic tier.
Variants§
Heuristic
Lowest tier: a synthesized or normalized-name guess (e.g. case-folded name match). Present so consumers can opt into maximum recall, never dressed as a precise fact — filter it out for strict precision.
NameOnly
Matched by name only — may be one of several same-named symbols.
Scoped
Narrowed by lexical scope / imports, or the referenced name has a unique global candidate — not type-checked.
Exact
Type/scope-precise (e.g. stack-graphs or type inference): exactly one binding.
Trait Implementations§
Source§impl Clone for Confidence
impl Clone for Confidence
Source§fn clone(&self) -> Confidence
fn clone(&self) -> Confidence
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more