pub trait OptimizationStrategy {
// Required methods
fn optimize(
&self,
algorithm: &AlgorithmOptimizationContext,
) -> DeviceResult<OptimizationResult>;
fn get_strategy_name(&self) -> String;
fn supports_algorithm_type(
&self,
algorithm_type: &AlgorithmCategory,
) -> bool;
}Expand description
Optimization strategy trait
Required Methods§
fn optimize( &self, algorithm: &AlgorithmOptimizationContext, ) -> DeviceResult<OptimizationResult>
fn get_strategy_name(&self) -> String
fn supports_algorithm_type(&self, algorithm_type: &AlgorithmCategory) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".