SelectionAlgorithm

Trait SelectionAlgorithm 

Source
pub trait SelectionAlgorithm {
    // Required methods
    fn select_platform(
        &self,
        circuit: &dyn CircuitInterface,
        platforms: &[PlatformAdapter],
        criteria: &SelectionCriteria,
    ) -> DeviceResult<String>;
    fn name(&self) -> &str;
}
Expand description

Selection algorithm trait

Required Methods§

Source

fn select_platform( &self, circuit: &dyn CircuitInterface, platforms: &[PlatformAdapter], criteria: &SelectionCriteria, ) -> DeviceResult<String>

Select best platform for a circuit

Source

fn name(&self) -> &str

Get algorithm name

Implementors§