BitMutator

Trait BitMutator 

Source
pub(crate) trait BitMutator:
    Sized
    + Copy
    + Debug {
    // Required method
    fn flip_random_bit(
        self,
        size: usize,
        test_runner: &mut TestRunner,
    ) -> Option<Self>;
}
Expand description

Mutator that changes the current value by flipping a random bit.

Required Methods§

Source

fn flip_random_bit( self, size: usize, test_runner: &mut TestRunner, ) -> Option<Self>

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.

Implementations on Foreign Types§

Source§

impl BitMutator for Address

Source§

fn flip_random_bit( self, _size: usize, test_runner: &mut TestRunner, ) -> Option<Self>

Source§

impl BitMutator for I256

Source§

fn flip_random_bit( self, size: usize, test_runner: &mut TestRunner, ) -> Option<Self>

Source§

impl BitMutator for U256

Source§

fn flip_random_bit( self, size: usize, test_runner: &mut TestRunner, ) -> Option<Self>

Source§

impl BitMutator for Word

Source§

fn flip_random_bit( self, size: usize, test_runner: &mut TestRunner, ) -> Option<Self>

Implementors§