Struct mutatis::mutators::Tuple4

source ·
pub struct Tuple4<M0, M1, M2, M3> { /* private fields */ }
Expand description

A mutator for tuples.

Trait Implementations§

source§

impl<M0: Clone, M1: Clone, M2: Clone, M3: Clone> Clone for Tuple4<M0, M1, M2, M3>

source§

fn clone(&self) -> Tuple4<M0, M1, M2, M3>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<M0: Debug, M1: Debug, M2: Debug, M3: Debug> Debug for Tuple4<M0, M1, M2, M3>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<M0: Default, M1: Default, M2: Default, M3: Default> Default for Tuple4<M0, M1, M2, M3>

source§

fn default() -> Tuple4<M0, M1, M2, M3>

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

impl<M0, T0, M1, T1, M2, T2, M3, T3> Mutate<(T0, T1, T2, T3)> for Tuple4<M0, M1, M2, M3>
where M0: Mutate<T0>, M1: Mutate<T1>, M2: Mutate<T2>, M3: Mutate<T3>,

source§

fn mutate( &mut self, _c: &mut Candidates<'_>, (T0, T1, T2, T3): &mut (T0, T1, T2, T3), ) -> Result<()>

Pseudo-randomly mutate the given value. Read more
source§

fn or<M>(self, other: M) -> Or<Self, M>
where Self: Sized,

Create a new mutator that performs either this mutation or the other mutation. Read more
source§

fn map<F>(self, f: F) -> Map<Self, F>
where Self: Sized, F: FnMut(&mut Context, &mut T) -> Result<()>,

Map a function over the mutations produced by this mutator. Read more
source§

fn proj<F, U>(self, f: F) -> Proj<Self, F>
where Self: Sized, F: FnMut(&mut U) -> &mut T,

Given a projection function F: FnMut(&mut U) -> &mut T, turn this Mutate<T> into a Mutate<U>. Read more
source§

fn by_ref(&mut self) -> &mut Self
where Self: Sized,

Borrows a mutator, rather than consuming it. Read more

Auto Trait Implementations§

§

impl<M0, M1, M2, M3> Freeze for Tuple4<M0, M1, M2, M3>
where M0: Freeze, M1: Freeze, M2: Freeze, M3: Freeze,

§

impl<M0, M1, M2, M3> RefUnwindSafe for Tuple4<M0, M1, M2, M3>

§

impl<M0, M1, M2, M3> Send for Tuple4<M0, M1, M2, M3>
where M0: Send, M1: Send, M2: Send, M3: Send,

§

impl<M0, M1, M2, M3> Sync for Tuple4<M0, M1, M2, M3>
where M0: Sync, M1: Sync, M2: Sync, M3: Sync,

§

impl<M0, M1, M2, M3> Unpin for Tuple4<M0, M1, M2, M3>
where M0: Unpin, M1: Unpin, M2: Unpin, M3: Unpin,

§

impl<M0, M1, M2, M3> UnwindSafe for Tuple4<M0, M1, M2, M3>
where M0: UnwindSafe, M1: UnwindSafe, M2: UnwindSafe, M3: 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> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

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>,

§

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.