pub struct EdgeData {
pub kind: EdgeKind,
pub confidence: f32,
pub flow_kind: Option<FlowKind>,
}Expand description
Data stored for each edge in the graph.
Fields§
§kind: EdgeKindSemantic kind of the relationship.
confidence: f32Confidence level for the edge resolution. Used for cross-language and best-effort resolution.
flow_kind: Option<FlowKind>Flow kind for dataflow edges (None for non-Flow edges).
Implementations§
Source§impl EdgeData
impl EdgeData
Sourcepub fn new(kind: EdgeKind) -> Self
pub fn new(kind: EdgeKind) -> Self
Creates a new edge with full confidence (1.0) and no flow kind.
Sourcepub fn with_confidence(kind: EdgeKind, confidence: f32) -> Self
pub fn with_confidence(kind: EdgeKind, confidence: f32) -> Self
Creates a new edge with specified confidence and no flow kind.
Sourcepub fn flow(flow_kind: FlowKind, confidence: f32) -> Self
pub fn flow(flow_kind: FlowKind, confidence: f32) -> Self
Creates a Flow edge with a flow kind and confidence.
pub fn participates_in_scc(&self) -> bool
Trait Implementations§
impl Copy for EdgeData
Auto Trait Implementations§
impl Freeze for EdgeData
impl RefUnwindSafe for EdgeData
impl Send for EdgeData
impl Sync for EdgeData
impl Unpin for EdgeData
impl UnsafeUnpin for EdgeData
impl UnwindSafe for EdgeData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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