pub enum EdgeConfidence {
Extracted,
Resolved,
Inferred,
}Expand description
How confident the indexer is that an edge is real.
Ordered from highest to lowest confidence:
Extracted— same-file, directly observedResolved— cross-file, import-verified (callee module was explicitly imported)Inferred— cross-file, name-match only (any same-named symbol could match)
Variants§
Extracted
Directly observed in the source (same-file resolution). Highest confidence.
Resolved
Cross-file edge where the callee’s module was explicitly imported at the call site.
Higher confidence than Inferred — false-positive rate is far lower.
Inferred
Resolved cross-file by unqualified name match only. Lowest confidence.
Implementations§
Source§impl EdgeConfidence
impl EdgeConfidence
Sourcepub fn from_label(s: &str) -> Self
pub fn from_label(s: &str) -> Self
Parse from the stored string form; unknown/empty defaults to Extracted.
Trait Implementations§
Source§impl Clone for EdgeConfidence
impl Clone for EdgeConfidence
Source§fn clone(&self) -> EdgeConfidence
fn clone(&self) -> EdgeConfidence
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 EdgeConfidence
Source§impl Debug for EdgeConfidence
impl Debug for EdgeConfidence
Source§impl Default for EdgeConfidence
impl Default for EdgeConfidence
Source§fn default() -> EdgeConfidence
fn default() -> EdgeConfidence
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EdgeConfidence
impl<'de> Deserialize<'de> for EdgeConfidence
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
Source§impl Display for EdgeConfidence
impl Display for EdgeConfidence
impl Eq for EdgeConfidence
Source§impl PartialEq for EdgeConfidence
impl PartialEq for EdgeConfidence
Source§impl Serialize for EdgeConfidence
impl Serialize for EdgeConfidence
impl StructuralPartialEq for EdgeConfidence
Auto Trait Implementations§
impl Freeze for EdgeConfidence
impl RefUnwindSafe for EdgeConfidence
impl Send for EdgeConfidence
impl Sync for EdgeConfidence
impl Unpin for EdgeConfidence
impl UnsafeUnpin for EdgeConfidence
impl UnwindSafe for EdgeConfidence
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