pub struct ChunkMetrics {
pub loc: usize,
pub complexity: Option<f32>,
pub reusability_score: Option<f32>,
pub export_count: usize,
pub dependency_count: usize,
pub coupling: Option<f32>,
}Expand description
Quality and reusability metrics
Fields§
§loc: usizeLines of code
complexity: Option<f32>Cyclomatic complexity estimate
reusability_score: Option<f32>Reusability score (0-1, higher = more reusable)
export_count: usizeNumber of public exports
dependency_count: usizeNumber of dependencies
coupling: Option<f32>Coupling score (0-1, lower = better)
Trait Implementations§
Source§impl Clone for ChunkMetrics
impl Clone for ChunkMetrics
Source§fn clone(&self) -> ChunkMetrics
fn clone(&self) -> ChunkMetrics
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 ChunkMetrics
impl Debug for ChunkMetrics
Source§impl Default for ChunkMetrics
impl Default for ChunkMetrics
Source§fn default() -> ChunkMetrics
fn default() -> ChunkMetrics
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChunkMetrics
impl<'de> Deserialize<'de> for ChunkMetrics
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
Auto Trait Implementations§
impl Freeze for ChunkMetrics
impl RefUnwindSafe for ChunkMetrics
impl Send for ChunkMetrics
impl Sync for ChunkMetrics
impl Unpin for ChunkMetrics
impl UnwindSafe for ChunkMetrics
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