pub enum EdgeConfidence {
Extracted,
Inferred,
}Expand description
How confident the indexer is that an edge is real. Direct edges resolved
within a single file are Extracted; cross-file edges resolved by matching
an unqualified name against the symbol table are Inferred (a same-named
symbol in another module could in principle be the true target).
Variants§
Extracted
Directly observed in the source (same-file resolution). High confidence.
Inferred
Resolved cross-file by name match. Lower 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§fn eq(&self, other: &EdgeConfidence) -> bool
fn eq(&self, other: &EdgeConfidence) -> bool
Tests for
self and other values to be equal, and is used by ==.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