pub struct Nop<T> { /* private fields */ }Expand description
A mutator that doesn’t do anything.
See the nop function to create new Nop mutator instances and for
example usage.
Trait Implementations§
Source§impl<T> Mutate<T> for Nop<T>
impl<T> Mutate<T> for Nop<T>
Source§fn mutate(&mut self, c: &mut Candidates<'_>, _value: &mut T) -> Result<()>
fn mutate(&mut self, c: &mut Candidates<'_>, _value: &mut T) -> Result<()>
Pseudo-randomly mutate the given value. Read more
Source§fn generate_via_mutate(
&mut self,
context: &mut Context,
iters: usize,
) -> Result<T>
fn generate_via_mutate( &mut self, context: &mut Context, iters: usize, ) -> Result<T>
Generate a new value by mutating its default value
iters times. Read moreSource§fn or<M>(self, other: M) -> Or<Self, M>where
Self: Sized,
fn or<M>(self, other: M) -> Or<Self, M>where
Self: Sized,
Create a new mutator that performs either this mutation or the
other
mutation. Read moreSource§fn map<F>(self, f: F) -> Map<Self, F>
fn map<F>(self, f: F) -> Map<Self, F>
Map a function over the mutations produced by this mutator. Read more
Auto Trait Implementations§
impl<T> Freeze for Nop<T>
impl<T> RefUnwindSafe for Nop<T>
impl<T> Send for Nop<T>
impl<T> Sync for Nop<T>
impl<T> Unpin for Nop<T>
impl<T> UnsafeUnpin for Nop<T>
impl<T> UnwindSafe for Nop<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more