1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
mod random_domain_assignments;
mod swap;

pub use {random_domain_assignments::RandomDomainAssignments, swap::Swap};

pub trait Mutation<M, T> {
  type Error;

  fn mutation(&self, misc: &M, source: &mut T) -> Result<(), Self::Error>;
}

impl<M, T> Mutation<M, T> for () {
  type Error = core::convert::Infallible;

  fn mutation(&self, _: &M, _: &mut T) -> Result<(), Self::Error> {
    Ok(())
  }
}