Struct Tuple5Mutator

Source
pub struct Tuple5Mutator<T0, T1, T2, T3, T4, M0, M1, M2, M3, M4>
where T0: Clone, M0: Mutator<T0>, T1: Clone, M1: Mutator<T1>, T2: Clone, M2: Mutator<T2>, T3: Clone, M3: Mutator<T3>, T4: Clone, M4: Mutator<T4>,
{ pub mutator_0: M0, pub mutator_1: M1, pub mutator_2: M2, pub mutator_3: M3, pub mutator_4: M4, /* private fields */ }

Fields§

§mutator_0: M0§mutator_1: M1§mutator_2: M2§mutator_3: M3§mutator_4: M4

Implementations§

Source§

impl<T0, T1, T2, T3, T4, M0, M1, M2, M3, M4> Tuple5Mutator<T0, T1, T2, T3, T4, M0, M1, M2, M3, M4>
where T0: Clone, M0: Mutator<T0>, T1: Clone, M1: Mutator<T1>, T2: Clone, M2: Mutator<T2>, T3: Clone, M3: Mutator<T3>, T4: Clone, M4: Mutator<T4>,

Source

pub fn new( mutator_0: M0, mutator_1: M1, mutator_2: M2, mutator_3: M3, mutator_4: M4, ) -> Self

Source

pub fn replacing_mutator_0<M>( self, mutator: M, ) -> Tuple5Mutator<T0, T1, T2, T3, T4, M, M1, M2, M3, M4>
where M: Mutator<T0>,

Source

pub fn replacing_mutator_1<M>( self, mutator: M, ) -> Tuple5Mutator<T0, T1, T2, T3, T4, M0, M, M2, M3, M4>
where M: Mutator<T1>,

Source

pub fn replacing_mutator_2<M>( self, mutator: M, ) -> Tuple5Mutator<T0, T1, T2, T3, T4, M0, M1, M, M3, M4>
where M: Mutator<T2>,

Source

pub fn replacing_mutator_3<M>( self, mutator: M, ) -> Tuple5Mutator<T0, T1, T2, T3, T4, M0, M1, M2, M, M4>
where M: Mutator<T3>,

Source

pub fn replacing_mutator_4<M>( self, mutator: M, ) -> Tuple5Mutator<T0, T1, T2, T3, T4, M0, M1, M2, M3, M>
where M: Mutator<T4>,

Trait Implementations§

Source§

impl<T0, T1, T2, T3, T4, M0, M1, M2, M3, M4> Default for Tuple5Mutator<T0, T1, T2, T3, T4, M0, M1, M2, M3, M4>
where T0: Clone, M0: Mutator<T0> + Default, T1: Clone, M1: Mutator<T1> + Default, T2: Clone, M2: Mutator<T2> + Default, T3: Clone, M3: Mutator<T3> + Default, T4: Clone, M4: Mutator<T4> + Default,

Source§

fn default() -> Self

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

impl<T, T0, T1, T2, T3, T4, M0, M1, M2, M3, M4> TupleMutator<T, Tuple5<T0, T1, T2, T3, T4>> for Tuple5Mutator<T0, T1, T2, T3, T4, M0, M1, M2, M3, M4>
where T: Clone + TupleStructure<Tuple5<T0, T1, T2, T3, T4>>, T0: Clone + 'static, M0: Mutator<T0>, T1: Clone + 'static, M1: Mutator<T1>, T2: Clone + 'static, M2: Mutator<T2>, T3: Clone + 'static, M3: Mutator<T3>, T4: Clone + 'static, M4: Mutator<T4>,

Source§

type Cache = Cache<<M0 as Mutator<T0>>::Cache, <M1 as Mutator<T1>>::Cache, <M2 as Mutator<T2>>::Cache, <M3 as Mutator<T3>>::Cache, <M4 as Mutator<T4>>::Cache>

Source§

type MutationStep = MutationStep<<M0 as Mutator<T0>>::MutationStep, <M1 as Mutator<T1>>::MutationStep, <M2 as Mutator<T2>>::MutationStep, <M3 as Mutator<T3>>::MutationStep, <M4 as Mutator<T4>>::MutationStep>

Source§

type ArbitraryStep = ArbitraryStep<<M0 as Mutator<T0>>::ArbitraryStep, <M1 as Mutator<T1>>::ArbitraryStep, <M2 as Mutator<T2>>::ArbitraryStep, <M3 as Mutator<T3>>::ArbitraryStep, <M4 as Mutator<T4>>::ArbitraryStep>

Source§

type UnmutateToken = UnmutateToken<<M0 as Mutator<T0>>::UnmutateToken, <M1 as Mutator<T1>>::UnmutateToken, <M2 as Mutator<T2>>::UnmutateToken, <M3 as Mutator<T3>>::UnmutateToken, <M4 as Mutator<T4>>::UnmutateToken>

Source§

fn max_complexity(&self) -> f64

Source§

fn min_complexity(&self) -> f64

Source§

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

Source§

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

Source§

fn initial_step_from_value<'a>( &'a self, value: (&'a T0, &'a T1, &'a T2, &'a T3, &'a T4), ) -> 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, &'a mut T2, &'a mut T3, &'a mut T4), 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, &'a mut T2, &'a mut T3, &'a mut T4), cache: &'a mut Self::Cache, max_cplx: f64, ) -> Self::UnmutateToken

Source§

fn unmutate<'a>( &'a self, value: (&'a mut T0, &'a mut T1, &'a mut T2, &'a mut T3, &'a mut T4), cache: &'a mut Self::Cache, t: Self::UnmutateToken, )

Auto Trait Implementations§

§

impl<T0, T1, T2, T3, T4, M0, M1, M2, M3, M4> !Freeze for Tuple5Mutator<T0, T1, T2, T3, T4, M0, M1, M2, M3, M4>

§

impl<T0, T1, T2, T3, T4, M0, M1, M2, M3, M4> !RefUnwindSafe for Tuple5Mutator<T0, T1, T2, T3, T4, M0, M1, M2, M3, M4>

§

impl<T0, T1, T2, T3, T4, M0, M1, M2, M3, M4> Send for Tuple5Mutator<T0, T1, T2, T3, T4, M0, M1, M2, M3, M4>
where M0: Send, M1: Send, M2: Send, M3: Send, M4: Send, T0: Send, T1: Send, T2: Send, T3: Send, T4: Send,

§

impl<T0, T1, T2, T3, T4, M0, M1, M2, M3, M4> !Sync for Tuple5Mutator<T0, T1, T2, T3, T4, M0, M1, M2, M3, M4>

§

impl<T0, T1, T2, T3, T4, M0, M1, M2, M3, M4> Unpin for Tuple5Mutator<T0, T1, T2, T3, T4, M0, M1, M2, M3, M4>
where M0: Unpin, M1: Unpin, M2: Unpin, M3: Unpin, M4: Unpin, T0: Unpin, T1: Unpin, T2: Unpin, T3: Unpin, T4: Unpin,

§

impl<T0, T1, T2, T3, T4, M0, M1, M2, M3, M4> UnwindSafe for Tuple5Mutator<T0, T1, T2, T3, T4, M0, M1, M2, M3, M4>

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