pub trait ComplexityPort {
// Required method
fn extract(
&self,
source: &str,
file_path: &str,
metric: ComplexityMetric,
) -> Result<Vec<FunctionComplexity>, CrapError>;
}Expand description
Port for extracting per-function complexity from source code.
Required Methods§
fn extract( &self, source: &str, file_path: &str, metric: ComplexityMetric, ) -> Result<Vec<FunctionComplexity>, CrapError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".