Skip to main content

mutate_trace

Function mutate_trace 

Source
pub fn mutate_trace<G, S, R>(
    genome: &G,
    selector: &S,
    mutation_fn: impl Fn(&Address, &ChoiceValue, &mut R) -> ChoiceValue,
    rng: &mut R,
) -> Result<G, GenomeError>
Expand description

Trace-based mutation operator

Mutates a genome by selectively resampling addresses in its trace representation.