pub struct ComplexityConfig {
pub enable_cognitive_complexity: bool,
pub enable_maintainability_index: bool,
pub enable_language_specific: bool,
pub thresholds: ComplexityThresholds,
}
Expand description
Configuration for complexity analysis
Fields§
§enable_cognitive_complexity: bool
Enable cognitive complexity calculation
enable_maintainability_index: bool
Enable maintainability index calculation
enable_language_specific: bool
Language-specific analysis
thresholds: ComplexityThresholds
Thresholds for complexity warnings
Trait Implementations§
Source§impl Clone for ComplexityConfig
impl Clone for ComplexityConfig
Source§fn clone(&self) -> ComplexityConfig
fn clone(&self) -> ComplexityConfig
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 ComplexityConfig
impl Debug for ComplexityConfig
Auto Trait Implementations§
impl Freeze for ComplexityConfig
impl RefUnwindSafe for ComplexityConfig
impl Send for ComplexityConfig
impl Sync for ComplexityConfig
impl Unpin for ComplexityConfig
impl UnwindSafe for ComplexityConfig
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more