Trait AsyncFitnessFunction

Source
pub trait AsyncFitnessFunction<G: Genome>: Send + Sync {
    // Required method
    fn fitness<'life0, 'life1, 'async_trait>(
        &'life0 self,
        genome: &'life1 G,
    ) -> Pin<Box<dyn Future<Output = f64> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn fitness<'life0, 'life1, 'async_trait>( &'life0 self, genome: &'life1 G, ) -> Pin<Box<dyn Future<Output = f64> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§