Mutate

Trait Mutate 

Source
pub trait Mutate {
    // Required methods
    fn random() -> Self;
    fn mutate(&mut self);
}
Expand description

A trait for anything that can be randomly mutated

Required Methods§

Source

fn random() -> Self

Returns a random value

Source

fn mutate(&mut self)

Mutates the object in some random way

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Mutate for strop::armv4t::isa::Insn

Source§

impl Mutate for strop::z80::Insn

Source§

impl<Insn: Mutate> Mutate for Sequence<Insn>