pub struct ComplexityResult {
pub cyclomatic_complexity: u32,
pub block_count: usize,
pub total_branches: u32,
pub avg_branches_per_block: f32,
pub rating: ComplexityRating,
}Expand description
Result of complexity analysis
Fields§
§cyclomatic_complexity: u32Cyclomatic complexity (McCabe number)
block_count: usizeNumber of blocks analyzed
total_branches: u32Total branch count
avg_branches_per_block: f32Average branches per block
rating: ComplexityRatingComplexity rating (Low/Medium/High/VeryHigh)
Trait Implementations§
Source§impl Clone for ComplexityResult
impl Clone for ComplexityResult
Source§fn clone(&self) -> ComplexityResult
fn clone(&self) -> ComplexityResult
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 moreAuto Trait Implementations§
impl Freeze for ComplexityResult
impl RefUnwindSafe for ComplexityResult
impl Send for ComplexityResult
impl Sync for ComplexityResult
impl Unpin for ComplexityResult
impl UnsafeUnpin for ComplexityResult
impl UnwindSafe for ComplexityResult
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