pub trait LanguageExtractor: Send + Sync {
// Required methods
fn lang(&self) -> Lang;
fn extract_complexity(&self, source: &[u8]) -> Result<ComplexityMetrics>;
}Required Methods§
fn lang(&self) -> Lang
fn extract_complexity(&self, source: &[u8]) -> Result<ComplexityMetrics>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".