pub enum ComplexityRating {
Low,
Medium,
High,
VeryHigh,
}Expand description
Complexity rating based on McCabe number
Variants§
Low
1-10: Simple, well-structured code
Medium
11-20: Moderate complexity
High
21-50: Complex, difficult to test
VeryHigh
51+: Very complex, should be refactored
Implementations§
Trait Implementations§
Source§impl Clone for ComplexityRating
impl Clone for ComplexityRating
Source§fn clone(&self) -> ComplexityRating
fn clone(&self) -> ComplexityRating
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 ComplexityRating
impl Debug for ComplexityRating
Source§impl PartialEq for ComplexityRating
impl PartialEq for ComplexityRating
Source§fn eq(&self, other: &ComplexityRating) -> bool
fn eq(&self, other: &ComplexityRating) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ComplexityRating
impl Eq for ComplexityRating
impl StructuralPartialEq for ComplexityRating
Auto Trait Implementations§
impl Freeze for ComplexityRating
impl RefUnwindSafe for ComplexityRating
impl Send for ComplexityRating
impl Sync for ComplexityRating
impl Unpin for ComplexityRating
impl UnsafeUnpin for ComplexityRating
impl UnwindSafe for ComplexityRating
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