pub struct Tuple2Mutator<T0, T1, M0, M1>{
pub mutator_0: M0,
pub mutator_1: M1,
/* private fields */
}
Fields§
§mutator_0: M0
§mutator_1: M1
Implementations§
Source§impl<T0, T1, M0, M1> Tuple2Mutator<T0, T1, M0, M1>
impl<T0, T1, M0, M1> Tuple2Mutator<T0, T1, M0, M1>
pub fn new(mutator_0: M0, mutator_1: M1) -> Self
pub fn replacing_mutator_0<M>(self, mutator: M) -> Tuple2Mutator<T0, T1, M, M1>where
M: Mutator<T0>,
pub fn replacing_mutator_1<M>(self, mutator: M) -> Tuple2Mutator<T0, T1, M0, M>where
M: Mutator<T1>,
Trait Implementations§
Source§impl<T0, T1, M0, M1> Default for Tuple2Mutator<T0, T1, M0, M1>
impl<T0, T1, M0, M1> Default for Tuple2Mutator<T0, T1, M0, M1>
Source§impl<T, T0, T1, M0, M1> TupleMutator<T, Tuple2<T0, T1>> for Tuple2Mutator<T0, T1, M0, M1>
impl<T, T0, T1, M0, M1> TupleMutator<T, Tuple2<T0, T1>> for Tuple2Mutator<T0, T1, M0, M1>
type Cache = Cache<<M0 as Mutator<T0>>::Cache, <M1 as Mutator<T1>>::Cache>
type MutationStep = MutationStep<<M0 as Mutator<T0>>::MutationStep, <M1 as Mutator<T1>>::MutationStep>
type ArbitraryStep = ArbitraryStep<<M0 as Mutator<T0>>::ArbitraryStep, <M1 as Mutator<T1>>::ArbitraryStep>
type UnmutateToken = UnmutateToken<<M0 as Mutator<T0>>::UnmutateToken, <M1 as Mutator<T1>>::UnmutateToken>
fn max_complexity(&self) -> f64
fn min_complexity(&self) -> f64
fn complexity<'a>( &'a self, _value: (&'a T0, &'a T1), cache: &'a Self::Cache, ) -> f64
fn cache_from_value<'a>(&'a self, value: (&'a T0, &'a T1)) -> Self::Cache
fn initial_step_from_value<'a>( &'a self, value: (&'a T0, &'a T1), ) -> Self::MutationStep
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<'a>( &'a self, value: (&'a mut T0, &'a mut T1), cache: &'a mut Self::Cache, step: &'a mut Self::MutationStep, max_cplx: f64, ) -> Option<Self::UnmutateToken>
fn random_mutate<'a>( &'a self, value: (&'a mut T0, &'a mut T1), cache: &'a mut Self::Cache, max_cplx: f64, ) -> Self::UnmutateToken
fn unmutate<'a>( &'a self, value: (&'a mut T0, &'a mut T1), cache: &'a mut Self::Cache, t: Self::UnmutateToken, )
Auto Trait Implementations§
impl<T0, T1, M0, M1> !Freeze for Tuple2Mutator<T0, T1, M0, M1>
impl<T0, T1, M0, M1> !RefUnwindSafe for Tuple2Mutator<T0, T1, M0, M1>
impl<T0, T1, M0, M1> Send for Tuple2Mutator<T0, T1, M0, M1>
impl<T0, T1, M0, M1> !Sync for Tuple2Mutator<T0, T1, M0, M1>
impl<T0, T1, M0, M1> Unpin for Tuple2Mutator<T0, T1, M0, M1>
impl<T0, T1, M0, M1> UnwindSafe for Tuple2Mutator<T0, T1, M0, M1>
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