pub struct CouplingItem {
pub key: String,
pub kind: String,
pub name: String,
pub path: Option<String>,
pub fan_in: u32,
pub fan_out: u32,
pub total: u32,
pub instability: f64,
}Expand description
One node’s directed call coupling in a CouplingReport.
Fields§
§key: StringNatural key of the node.
kind: StringKind token (e.g. fn).
name: StringHuman-facing name.
path: Option<String>Repository-relative path, if any.
fan_in: u32How many distinct other nodes call this one.
fan_out: u32How many distinct other nodes this one calls.
total: u32fan_in + fan_out — the directed equivalent of the undirected degree.
instability: f64Martin’s instability, fan_out / (fan_in + fan_out), rounded to two
decimals. 0.0 = purely depended-on (stable); 1.0 = purely depending
(unstable). The denominator is never zero: an item exists only when it
has at least one non-self call edge.
Trait Implementations§
Source§impl Clone for CouplingItem
impl Clone for CouplingItem
Source§fn clone(&self) -> CouplingItem
fn clone(&self) -> CouplingItem
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 CouplingItem
impl Debug for CouplingItem
Source§impl PartialEq for CouplingItem
impl PartialEq for CouplingItem
Source§impl Serialize for CouplingItem
impl Serialize for CouplingItem
impl StructuralPartialEq for CouplingItem
Auto Trait Implementations§
impl Freeze for CouplingItem
impl RefUnwindSafe for CouplingItem
impl Send for CouplingItem
impl Sync for CouplingItem
impl Unpin for CouplingItem
impl UnsafeUnpin for CouplingItem
impl UnwindSafe for CouplingItem
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