pub trait ScaleAnalyzer: Send + Sync {
// Required methods
fn analyze(&self, context: &ProjectContext) -> Option<(ProjectScale, f32)>;
fn name(&self) -> &'static str;
}Expand description
Trait for scale analyzers
Required Methods§
Sourcefn analyze(&self, context: &ProjectContext) -> Option<(ProjectScale, f32)>
fn analyze(&self, context: &ProjectContext) -> Option<(ProjectScale, f32)>
Analyze the project context and return a scale suggestion with confidence
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".