pub enum ComplexityBucket {
Low,
Medium,
High,
VeryHigh,
}Expand description
Complexity bucket for classifying code units.
Variants§
Low
Cyclomatic complexity 1-5.
Medium
Cyclomatic complexity 6-15.
High
Cyclomatic complexity 16-30.
VeryHigh
Cyclomatic complexity > 30.
Implementations§
Source§impl ComplexityBucket
impl ComplexityBucket
Sourcepub fn from_complexity(complexity: u32) -> Self
pub fn from_complexity(complexity: u32) -> Self
Classify a complexity value into a bucket.
Trait Implementations§
Source§impl Clone for ComplexityBucket
impl Clone for ComplexityBucket
Source§fn clone(&self) -> ComplexityBucket
fn clone(&self) -> ComplexityBucket
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 ComplexityBucket
impl Debug for ComplexityBucket
Source§impl<'de> Deserialize<'de> for ComplexityBucket
impl<'de> Deserialize<'de> for ComplexityBucket
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
Source§impl Display for ComplexityBucket
impl Display for ComplexityBucket
Source§impl Hash for ComplexityBucket
impl Hash for ComplexityBucket
Source§impl PartialEq for ComplexityBucket
impl PartialEq for ComplexityBucket
Source§impl Serialize for ComplexityBucket
impl Serialize for ComplexityBucket
impl Eq for ComplexityBucket
impl StructuralPartialEq for ComplexityBucket
Auto Trait Implementations§
impl Freeze for ComplexityBucket
impl RefUnwindSafe for ComplexityBucket
impl Send for ComplexityBucket
impl Sync for ComplexityBucket
impl Unpin for ComplexityBucket
impl UnsafeUnpin for ComplexityBucket
impl UnwindSafe for ComplexityBucket
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.