Skip to main content

ScaleAnalyzer

Trait ScaleAnalyzer 

Source
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§

Source

fn analyze(&self, context: &ProjectContext) -> Option<(ProjectScale, f32)>

Analyze the project context and return a scale suggestion with confidence

Source

fn name(&self) -> &'static str

Get the name of this analyzer

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§