pub struct CrossRef {
pub source_id: String,
pub source_partition: String,
pub target_id: String,
pub target_partition: String,
pub edge_type: EdgeType,
pub ref_line: Option<usize>,
pub ident: Option<String>,
pub version_spec: Option<String>,
pub is_dev_dependency: Option<bool>,
}Expand description
A cross-partition edge reference
Fields§
§source_id: StringSource node ID (e.g., “src/main.rs:main”)
source_partition: StringPartition containing the source node
target_id: StringTarget node ID (e.g., “src/lib.rs:helper”)
target_partition: StringPartition containing the target node
edge_type: EdgeTypeType of edge (typically USES for cross-partition, DEPENDS_ON for components)
ref_line: Option<usize>Line number where the reference occurs
ident: Option<String>Identifier text at the reference site
version_spec: Option<String>Version specification (for DEPENDS_ON edges)
is_dev_dependency: Option<bool>Whether this is a development dependency (for DEPENDS_ON edges)
Implementations§
Trait Implementations§
impl Eq for CrossRef
impl StructuralPartialEq for CrossRef
Auto Trait Implementations§
impl Freeze for CrossRef
impl RefUnwindSafe for CrossRef
impl Send for CrossRef
impl Sync for CrossRef
impl Unpin for CrossRef
impl UnwindSafe for CrossRef
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
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