pub struct ImportInsights {
pub average_import_depth: f64,
pub max_import_depth: usize,
pub fan_out_distribution: DegreeStats,
pub fan_in_distribution: DegreeStats,
pub circular_dependencies: Vec<CircularDependency>,
pub dependency_layers: Vec<Vec<NodeId>>,
pub critical_paths: Vec<DependencyPath>,
}Expand description
Import relationship specific insights
Fields§
§average_import_depth: f64Average import depth (distance from root nodes)
max_import_depth: usizeMaximum import depth
fan_out_distribution: DegreeStatsImport fan-out distribution (how many files each file imports)
fan_in_distribution: DegreeStatsImport fan-in distribution (how many files import each file)
circular_dependencies: Vec<CircularDependency>Circular dependency detection
dependency_layers: Vec<Vec<NodeId>>Dependency layers (topological levels)
critical_paths: Vec<DependencyPath>Critical import paths (most important dependency chains)
Trait Implementations§
Source§impl Clone for ImportInsights
impl Clone for ImportInsights
Source§fn clone(&self) -> ImportInsights
fn clone(&self) -> ImportInsights
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 moreSource§impl Debug for ImportInsights
impl Debug for ImportInsights
Source§impl Default for ImportInsights
impl Default for ImportInsights
Source§fn default() -> ImportInsights
fn default() -> ImportInsights
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ImportInsights
impl<'de> Deserialize<'de> for ImportInsights
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ImportInsights
impl PartialEq for ImportInsights
Source§impl Serialize for ImportInsights
impl Serialize for ImportInsights
impl StructuralPartialEq for ImportInsights
Auto Trait Implementations§
impl Freeze for ImportInsights
impl RefUnwindSafe for ImportInsights
impl Send for ImportInsights
impl Sync for ImportInsights
impl Unpin for ImportInsights
impl UnwindSafe for ImportInsights
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> 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