pub struct UnitMutator<T>where
T: Clone,{ /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<T> Clone for UnitMutator<T>
impl<T> Clone for UnitMutator<T>
Source§fn clone(&self) -> UnitMutator<T>
fn clone(&self) -> UnitMutator<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T> Default for UnitMutator<T>
impl<T> Default for UnitMutator<T>
Source§impl<T> Mutator<T> for UnitMutator<T>where
T: Clone + 'static,
impl<T> Mutator<T> for UnitMutator<T>where
T: Clone + 'static,
type Cache = ()
type MutationStep = ()
type ArbitraryStep = bool
type 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<T> Freeze for UnitMutator<T>where
T: Freeze,
impl<T> RefUnwindSafe for UnitMutator<T>where
T: RefUnwindSafe,
impl<T> Send for UnitMutator<T>where
T: Send,
impl<T> Sync for UnitMutator<T>where
T: Sync,
impl<T> Unpin for UnitMutator<T>where
T: Unpin,
impl<T> UnwindSafe for UnitMutator<T>where
T: UnwindSafe,
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