pub struct RecurToMutator<M> { /* private fields */ }Trait Implementations§
Source§impl<M> From<&Weak<M>> for RecurToMutator<M>
impl<M> From<&Weak<M>> for RecurToMutator<M>
Source§impl<T, M> Mutator<T> for RecurToMutator<M>
impl<T, M> Mutator<T> for RecurToMutator<M>
type Cache = <M as Mutator<T>>::Cache
type MutationStep = <M as Mutator<T>>::MutationStep
type ArbitraryStep = RecursingArbitraryStep<<M as Mutator<T>>::ArbitraryStep>
type UnmutateToken = <M as Mutator<T>>::UnmutateToken
Source§fn cache_from_value(&self, value: &T) -> Self::Cache
fn cache_from_value(&self, value: &T) -> Self::Cache
Compute the cache for the given value
Source§fn initial_step_from_value(&self, value: &T) -> Self::MutationStep
fn initial_step_from_value(&self, value: &T) -> Self::MutationStep
Compute the initial mutation step for the given value
Source§fn max_complexity(&self) -> f64
fn max_complexity(&self) -> f64
The maximum complexity of an input of this type
Source§fn min_complexity(&self) -> f64
fn min_complexity(&self) -> f64
The minimum complexity of an input of this type
fn complexity(&self, value: &T, cache: &Self::Cache) -> f64
fn ordered_arbitrary( &self, step: &mut Self::ArbitraryStep, max_cplx: f64, ) -> Option<(T, Self::Cache)>
fn random_arbitrary(&self, max_cplx: f64) -> (T, Self::Cache)
fn ordered_mutate( &self, value: &mut T, cache: &mut Self::Cache, step: &mut Self::MutationStep, max_cplx: f64, ) -> Option<Self::UnmutateToken>
fn random_mutate( &self, value: &mut T, cache: &mut Self::Cache, max_cplx: f64, ) -> Self::UnmutateToken
fn unmutate( &self, value: &mut T, cache: &mut Self::Cache, t: Self::UnmutateToken, )
Auto Trait Implementations§
impl<M> Freeze for RecurToMutator<M>
impl<M> !RefUnwindSafe for RecurToMutator<M>
impl<M> !Send for RecurToMutator<M>
impl<M> !Sync for RecurToMutator<M>
impl<M> Unpin for RecurToMutator<M>
impl<M> !UnwindSafe for RecurToMutator<M>
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