Skip to main content

EngineStream

Trait EngineStream 

Source
pub trait EngineStream: Engine {
    type View<'a>
       where Self: 'a;

    // Required method
    fn run<F>(self, limit: F) -> Result<Self::Epoch, RadiateError>
       where F: Fn(Self::View<'_>) -> bool + 'static;
}

Required Associated Types§

Source

type View<'a> where Self: 'a

Required Methods§

Source

fn run<F>(self, limit: F) -> Result<Self::Epoch, RadiateError>
where F: Fn(Self::View<'_>) -> bool + 'static,

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<C, T> EngineStream for GeneticEngine<C, T>
where C: Chromosome + Clone + 'static, T: Clone + Send + Sync,

Implementation of the EngineStream trait for GeneticEngine.

Source§

type View<'a> = GenerationView<'a, C, T> where GeneticEngine<C, T>: 'a