pub enum EvidenceGrade {
HeuristicStructural,
ResolvedStructural,
VerifiedSemantic,
}Expand description
Strength of a relationship, weakest first (Ord = strength).
Variants§
HeuristicStructural
Plausible by name only (e.g. a name unique in the project but not in the caller’s scope — could still be an external function).
ResolvedStructural
Bound by the caller’s own scope (same file / unique import) or by the
call’s own module path (config_io::write → config_io.rs).
VerifiedSemantic
A local semantic backend (language server / IDE) resolved it.
Implementations§
Source§impl EvidenceGrade
impl EvidenceGrade
pub fn from_scope(via: ScopeMatch) -> Self
pub fn as_str(self) -> &'static str
Sourcepub fn weight_factor(self) -> f64
pub fn weight_factor(self) -> f64
Multiplier applied to an edge kind’s weight in ranking/impact scoring. Scope-bound and verified edges count fully; a name-only guess counts less so it cannot outrank real relationships.
Trait Implementations§
Source§impl Clone for EvidenceGrade
impl Clone for EvidenceGrade
impl Copy for EvidenceGrade
Source§impl Debug for EvidenceGrade
impl Debug for EvidenceGrade
Source§impl<'de> Deserialize<'de> for EvidenceGrade
impl<'de> Deserialize<'de> for EvidenceGrade
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EvidenceGrade
Source§impl Hash for EvidenceGrade
impl Hash for EvidenceGrade
Source§impl Ord for EvidenceGrade
impl Ord for EvidenceGrade
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for EvidenceGrade
impl PartialEq for EvidenceGrade
Source§impl PartialOrd for EvidenceGrade
impl PartialOrd for EvidenceGrade
Source§impl Serialize for EvidenceGrade
impl Serialize for EvidenceGrade
impl StructuralPartialEq for EvidenceGrade
Auto Trait Implementations§
impl Forget for EvidenceGrade
impl Freeze for EvidenceGrade
impl Move for EvidenceGrade
impl RefUnwindSafe for EvidenceGrade
impl Send for EvidenceGrade
impl Sync for EvidenceGrade
impl Unpin for EvidenceGrade
impl UnsafeUnpin for EvidenceGrade
impl UnwindSafe for EvidenceGrade
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
Converts
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> ⓘ
Converts
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