pub struct NoMutation;
Trait Implementations
sourceimpl<Value, M> Mutation<Value, M> for NoMutation where
Value: Clone + 'static,
M: Mutator<Value>,
impl<Value, M> Mutation<Value, M> for NoMutation where
Value: Clone + 'static,
M: Mutator<Value>,
type RandomStep = ()
type Step = ()
type Concrete<'a> = ()
type Revert = NoMutation
fn default_random_step(
&self,
_mutator: &M,
_value: &Value
) -> Option<Self::RandomStep>
fn random<'a>(
_mutator: &M,
_value: &Value,
_cache: &M::Cache,
_random_step: &Self::RandomStep,
_max_cplx: f64
) -> Self::Concrete<'a>
fn default_step(
&self,
_mutator: &M,
_value: &Value,
_cache: &M::Cache
) -> Option<Self::Step>
fn from_step<'a>(
_mutator: &M,
_value: &Value,
_cache: &M::Cache,
_step: &'a mut Self::Step,
_subvalue_provider: &dyn SubValueProvider,
_max_cplx: f64
) -> Option<Self::Concrete<'a>>
fn apply<'a>(
_mutation: Self::Concrete<'a>,
mutator: &M,
value: &mut Value,
cache: &mut M::Cache,
_subvalue_provider: &dyn SubValueProvider,
_max_cplx: f64
) -> (Self::Revert, f64)
sourceimpl<Value, M> RevertMutation<Value, M> for NoMutation where
Value: Clone + 'static,
M: Mutator<Value>,
impl<Value, M> RevertMutation<Value, M> for NoMutation where
Value: Clone + 'static,
M: Mutator<Value>,
Auto Trait Implementations
impl RefUnwindSafe for NoMutation
impl Send for NoMutation
impl Sync for NoMutation
impl Unpin for NoMutation
impl UnwindSafe for NoMutation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more