Trait egg::IterationData

source ·
pub trait IterationData<L, N>: Sizedwhere
    L: Language,
    N: Analysis<L>,{
    // Required method
    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§

source

fn make(runner: &Runner<L, N, Self>) -> Self

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

Implementations on Foreign Types§

source§

impl<L, N> IterationData<L, N> for ()where L: Language, N: Analysis<L>,

source§

fn make(_: &Runner<L, N, Self>) -> Self

Implementors§