pub struct LayerHealth {
pub cohesion: f32,
pub coupling_up: f32,
pub coupling_down: f32,
pub violation_density: f32,
}Expand description
Health metrics for a single architectural layer.
Fields§
§cohesion: f32Ratio of intra-layer edges to the theoretical maximum — measures how internally cohesive the layer is.
coupling_up: f32Fraction of external edges that go to a shallower (higher-level) layer — upward coupling is a smell.
coupling_down: f32Fraction of external edges that go to a deeper (lower-level) layer — normal downward dependency.
violation_density: f32Number of violations involving this layer divided by the layer’s node count.
Trait Implementations§
Source§impl Clone for LayerHealth
impl Clone for LayerHealth
Source§fn clone(&self) -> LayerHealth
fn clone(&self) -> LayerHealth
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 LayerHealth
impl Debug for LayerHealth
Auto Trait Implementations§
impl Freeze for LayerHealth
impl RefUnwindSafe for LayerHealth
impl Send for LayerHealth
impl Sync for LayerHealth
impl Unpin for LayerHealth
impl UnsafeUnpin for LayerHealth
impl UnwindSafe for LayerHealth
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