pub trait GenAlgorithm<CONTEXT, STATE, OUTPUT>: Generatable<OUTPUT> + Stateful<CONTEXT, STATE> {
// Provided methods
fn computation<COLLECTION: Default + Extend<OUTPUT> + 'static>(
self,
) -> impl Computable<COLLECTION>
where Self: Sized + 'static { ... }
fn dyn_algorithm(self) -> DynGenAlgorithm<CONTEXT, STATE, OUTPUT>
where Self: Sized + 'static { ... }
}Expand description
Extends Generatable trait with immutable CONTEXT and mutable STATE.
Provided Methods§
Sourcefn computation<COLLECTION: Default + Extend<OUTPUT> + 'static>(
self,
) -> impl Computable<COLLECTION>where
Self: Sized + 'static,
fn computation<COLLECTION: Default + Extend<OUTPUT> + 'static>(
self,
) -> impl Computable<COLLECTION>where
Self: Sized + 'static,
Convert a GenAlgorithm into a Computable object that collects all values
into a COLLECTION.
Sourcefn dyn_algorithm(self) -> DynGenAlgorithm<CONTEXT, STATE, OUTPUT>where
Self: Sized + 'static,
fn dyn_algorithm(self) -> DynGenAlgorithm<CONTEXT, STATE, OUTPUT>where
Self: Sized + 'static,
Convert to a dynamic GenAlgorithm variant.