Trait egg::IterationData

source ·
pub trait IterationData<L, N>: Sizedwhere
    L: Language,
    N: Analysis<L>,
{ fn make(runner: &Runner<L, N, Self>) -> Self; }
Expand description

Custom data to inject into the Iterations recorded by a Runner

This trait allows you to add custom data to the Iterations recorded as a Runner applies rules.

See the Runner docs for an example.

Runner is generic over the IterationData that it will be in the Iterations, but by default it uses ().

Required Methods§

Given the current Runner, make the data to be put in this Iteration.

Implementations on Foreign Types§

Implementors§