pub trait Complexity: Sealed {
// Required method
fn complexity(&self) -> u32;
}
Expand description
A trait for calculating the cognitive complexity of a Rust type.
This is a sealed trait so only this crate can implement it.
Required Methods§
Sourcefn complexity(&self) -> u32
fn complexity(&self) -> u32
Returns the cognitive complexity index for the implementor.