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 moreimpl Copy for Confidence
Source§impl Debug for Confidence
impl Debug for Confidence
impl Eq for Confidence
Source§impl Hash for Confidence
impl Hash for Confidence
Source§impl Ord for Confidence
impl Ord for Confidence
Source§fn cmp(&self, other: &Confidence) -> Ordering
fn cmp(&self, other: &Confidence) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for Confidence
impl PartialEq for Confidence
Source§fn eq(&self, other: &Confidence) -> bool
fn eq(&self, other: &Confidence) -> bool
self and other values to be equal, and is used by ==.