pub struct ItemDependency {
pub source_item: String,
pub source_kind: ItemKind,
pub target: String,
pub target_module: Option<String>,
pub dep_type: ItemDepType,
pub line: usize,
pub expression: Option<String>,
}Expand description
Detailed dependency at the item level (function, struct, etc.)
Fields§
§source_item: StringSource item (e.g., “fn analyze_project”)
source_kind: ItemKindSource item kind
target: StringTarget (e.g., “ProjectMetrics” or “analyze_file”)
target_module: Option<String>Target module (if known)
dep_type: ItemDepTypeType of dependency
line: usizeLine number in source
expression: Option<String>The actual expression/code (e.g., “config.thresholds” or “self.couplings”)
Trait Implementations§
Source§impl Clone for ItemDependency
impl Clone for ItemDependency
Source§fn clone(&self) -> ItemDependency
fn clone(&self) -> ItemDependency
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ItemDependency
impl RefUnwindSafe for ItemDependency
impl Send for ItemDependency
impl Sync for ItemDependency
impl Unpin for ItemDependency
impl UnsafeUnpin for ItemDependency
impl UnwindSafe for ItemDependency
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