#[non_exhaustive]pub struct DistanceInfo { /* private fields */ }Expand description
Metrics and dependency evidence for one file-level architectural component.
Implementations§
Source§impl DistanceInfo
impl DistanceInfo
Sourcepub fn identifier(&self) -> &str
pub fn identifier(&self) -> &str
Returns the normalized source-file identifier for this component.
Sourcepub const fn file(&self) -> &FileMetricsInfo
pub const fn file(&self) -> &FileMetricsInfo
Returns the complete syntax metrics evidence for this component.
Sourcepub const fn afferent_coupling(&self) -> usize
pub const fn afferent_coupling(&self) -> usize
Returns distinct analyzed files that depend on this component.
Sourcepub const fn efferent_coupling(&self) -> usize
pub const fn efferent_coupling(&self) -> usize
Returns distinct analyzed files on which this component depends.
Sourcepub const fn project_file_count(&self) -> usize
pub const fn project_file_count(&self) -> usize
Returns the number of files in the full analyzed coupling universe.
Trait Implementations§
Source§impl Clone for DistanceInfo
impl Clone for DistanceInfo
Source§fn clone(&self) -> DistanceInfo
fn clone(&self) -> DistanceInfo
Returns a copy 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 DistanceInfo
impl Debug for DistanceInfo
Source§impl PartialEq for DistanceInfo
impl PartialEq for DistanceInfo
impl Eq for DistanceInfo
impl StructuralPartialEq for DistanceInfo
Auto Trait Implementations§
impl Freeze for DistanceInfo
impl RefUnwindSafe for DistanceInfo
impl Send for DistanceInfo
impl Sync for DistanceInfo
impl Unpin for DistanceInfo
impl UnwindSafe for DistanceInfo
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.