Struct Tuple2Mutator

Source
pub struct Tuple2Mutator<T0, T1, M0, M1>
where T0: Clone, M0: Mutator<T0>, T1: Clone, M1: Mutator<T1>,
{ 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>
where T0: Clone, M0: Mutator<T0>, T1: Clone, M1: Mutator<T1>,

Source

pub fn new(mutator_0: M0, mutator_1: M1) -> Self

Source

pub fn replacing_mutator_0<M>(self, mutator: M) -> Tuple2Mutator<T0, T1, M, M1>
where M: Mutator<T0>,

Source

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>
where T0: Clone, M0: Mutator<T0> + Default, T1: Clone, M1: Mutator<T1> + Default,

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<T, T0, T1, M0, M1> TupleMutator<T, Tuple2<T0, T1>> for Tuple2Mutator<T0, T1, M0, M1>
where T: Clone + TupleStructure<Tuple2<T0, T1>>, T0: Clone + 'static, M0: Mutator<T0>, T1: Clone + 'static, M1: Mutator<T1>,

Source§

type Cache = Cache<<M0 as Mutator<T0>>::Cache, <M1 as Mutator<T1>>::Cache>

Source§

type MutationStep = MutationStep<<M0 as Mutator<T0>>::MutationStep, <M1 as Mutator<T1>>::MutationStep>

Source§

type ArbitraryStep = ArbitraryStep<<M0 as Mutator<T0>>::ArbitraryStep, <M1 as Mutator<T1>>::ArbitraryStep>

Source§

type UnmutateToken = UnmutateToken<<M0 as Mutator<T0>>::UnmutateToken, <M1 as Mutator<T1>>::UnmutateToken>

Source§

fn max_complexity(&self) -> f64

Source§

fn min_complexity(&self) -> f64

Source§

fn complexity<'a>( &'a self, _value: (&'a T0, &'a T1), cache: &'a Self::Cache, ) -> f64

Source§

fn cache_from_value<'a>(&'a self, value: (&'a T0, &'a T1)) -> Self::Cache

Source§

fn initial_step_from_value<'a>( &'a self, value: (&'a T0, &'a T1), ) -> Self::MutationStep

Source§

fn ordered_arbitrary( &self, step: &mut Self::ArbitraryStep, max_cplx: f64, ) -> Option<(T, Self::Cache)>

Source§

fn random_arbitrary(&self, max_cplx: f64) -> (T, Self::Cache)

Source§

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>

Source§

fn random_mutate<'a>( &'a self, value: (&'a mut T0, &'a mut T1), cache: &'a mut Self::Cache, max_cplx: f64, ) -> Self::UnmutateToken

Source§

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>
where M0: Send, M1: Send, T0: Send, T1: Send,

§

impl<T0, T1, M0, M1> !Sync for Tuple2Mutator<T0, T1, M0, M1>

§

impl<T0, T1, M0, M1> Unpin for Tuple2Mutator<T0, T1, M0, M1>
where M0: Unpin, M1: Unpin, T0: Unpin, T1: Unpin,

§

impl<T0, T1, M0, M1> UnwindSafe for Tuple2Mutator<T0, T1, M0, M1>
where M0: UnwindSafe, M1: UnwindSafe, T0: UnwindSafe, T1: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> TupleStructure<Tuple1<T>> for T
where T: 'static,

Source§

fn get_ref<'a>(&'a self) -> &'a T

Source§

fn get_mut<'a>(&'a mut self) -> &'a mut T

Source§

fn new(t: T) -> T