pub struct DependencyGraph { /* private fields */ }Expand description
Represents a dependency graph between classes/methods
Implementations§
Source§impl DependencyGraph
impl DependencyGraph
pub fn new() -> Self
Sourcepub fn add_edge(&mut self, from: Arc<str>, to: Arc<str>, kind: EdgeKind)
pub fn add_edge(&mut self, from: Arc<str>, to: Arc<str>, kind: EdgeKind)
Add an edge between nodes
Sourcepub fn coupling_metrics(&self, node: &Arc<str>) -> Option<CouplingMetrics>
pub fn coupling_metrics(&self, node: &Arc<str>) -> Option<CouplingMetrics>
Calculate coupling metrics
Trait Implementations§
Source§impl Clone for DependencyGraph
impl Clone for DependencyGraph
Source§fn clone(&self) -> DependencyGraph
fn clone(&self) -> DependencyGraph
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 moreSource§impl Debug for DependencyGraph
impl Debug for DependencyGraph
Auto Trait Implementations§
impl Freeze for DependencyGraph
impl RefUnwindSafe for DependencyGraph
impl Send for DependencyGraph
impl Sync for DependencyGraph
impl Unpin for DependencyGraph
impl UnsafeUnpin for DependencyGraph
impl UnwindSafe for DependencyGraph
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