pub struct GraphStats {
pub total_types: usize,
pub total_edges: usize,
pub cycle_count: usize,
pub unused_count: usize,
pub avg_dependencies: f64,
pub max_depth: usize,
pub most_depended_on: Vec<String>,
}Expand description
Statistics about the dependency graph
Fields§
§total_types: usizeTotal number of types
total_edges: usizeTotal number of edges (dependencies)
cycle_count: usizeNumber of circular dependencies
unused_count: usizeNumber of unused types
avg_dependencies: f64Average dependencies per type
max_depth: usizeMaximum dependency depth from any root
most_depended_on: Vec<String>Types with the most dependents (most “important”)
Trait Implementations§
Source§impl Debug for GraphStats
impl Debug for GraphStats
Auto Trait Implementations§
impl Freeze for GraphStats
impl RefUnwindSafe for GraphStats
impl Send for GraphStats
impl Sync for GraphStats
impl Unpin for GraphStats
impl UnwindSafe for GraphStats
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