pub enum MetricArg {
Cognitive,
Cyclomatic,
}Expand description
Complexity metric for CRAP score computation.
Variants§
Cognitive
Nesting depth + structural complexity (default for Rust)
Cyclomatic
Decision-point count, classic CRAP metric
Trait Implementations§
Source§impl From<MetricArg> for ComplexityMetric
impl From<MetricArg> for ComplexityMetric
impl Copy for MetricArg
Auto Trait Implementations§
impl Freeze for MetricArg
impl RefUnwindSafe for MetricArg
impl Send for MetricArg
impl Sync for MetricArg
impl Unpin for MetricArg
impl UnsafeUnpin for MetricArg
impl UnwindSafe for MetricArg
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