[][src]Module byte_mutator::mutators

This module contains the available mutators.

Example

use byte_mutator::mutators::Mutation;
use byte_mutator::mutators::MutationType::BitFlipper;

let bitflipper = Mutation{
    range: None,
    mutation: BitFlipper {width: 1}
};

let mut bytes = b"foo".to_vec();

bitflipper.mutate(&mut bytes, 0);

assert_eq!(&bytes, b"goo");

Modules

bitflipper

Performs a walking bit flip of width bits. A width of 1 will flip a single bit.

Structs

Mutation

A single mutation, optionally scoped to only operate on a subslice

Enums

MutationType