pub trait Mutation<P: Problem>: AnyComponent {
// Required method
fn mutate(
&self,
solution: &mut P::Encoding,
problem: &P,
state: &mut State<'_, P>,
) -> ExecResult<()>;
}Expand description
Trait for representing a component that mutates solutions.