Struct Tuple3

Source
pub struct Tuple3<T0: 'static, T1: 'static, T2: 'static> { /* private fields */ }

Trait Implementations§

Source§

impl<T0: 'static, T1: 'static, T2: 'static> RefTypes for Tuple3<T0, T1, T2>

Source§

type Owned = (T0, T1, T2)

Source§

type Ref<'a> = (&'a T0, &'a T1, &'a T2)

Source§

type Mut<'a> = (&'a mut T0, &'a mut T1, &'a mut T2)

Source§

fn get_ref_from_mut<'a>(v: &'a Self::Mut<'a>) -> Self::Ref<'a>

Source§

impl<T, T0, T1, T2, M0, M1, M2> TupleMutator<T, Tuple3<T0, T1, T2>> for Tuple3Mutator<T0, T1, T2, M0, M1, M2>
where T: Clone + TupleStructure<Tuple3<T0, T1, T2>>, T0: Clone + 'static, M0: Mutator<T0>, T1: Clone + 'static, M1: Mutator<T1>, T2: Clone + 'static, M2: Mutator<T2>,

Source§

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

Source§

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

Source§

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

Source§

type UnmutateToken = UnmutateToken<<M0 as Mutator<T0>>::UnmutateToken, <M1 as Mutator<T1>>::UnmutateToken, <M2 as Mutator<T2>>::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), cache: &'a Self::Cache, ) -> f64

Source§

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

Source§

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

Source§

impl<T0: 'static, T1: 'static, T2: 'static> TupleStructure<Tuple3<T0, T1, T2>> for (T0, T1, T2)

Source§

fn get_ref<'a>(&'a self) -> (&'a T0, &'a T1, &'a T2)

Source§

fn get_mut<'a>(&'a mut self) -> (&'a mut T0, &'a mut T1, &'a mut T2)

Source§

fn new(t: (T0, T1, T2)) -> Self

Auto Trait Implementations§

§

impl<T0, T1, T2> Freeze for Tuple3<T0, T1, T2>

§

impl<T0, T1, T2> RefUnwindSafe for Tuple3<T0, T1, T2>

§

impl<T0, T1, T2> Send for Tuple3<T0, T1, T2>
where T0: Send, T1: Send, T2: Send,

§

impl<T0, T1, T2> Sync for Tuple3<T0, T1, T2>
where T0: Sync, T1: Sync, T2: Sync,

§

impl<T0, T1, T2> Unpin for Tuple3<T0, T1, T2>
where T0: Unpin, T1: Unpin, T2: Unpin,

§

impl<T0, T1, T2> UnwindSafe for Tuple3<T0, T1, T2>
where T0: UnwindSafe, T1: UnwindSafe, T2: 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