Tuple4Generator

Struct Tuple4Generator 

Source
pub struct Tuple4Generator<T1, T2, T3, T4, G1, G2, G3, G4> { /* private fields */ }
Expand description

Generator for 4-tuples

Implementations§

Source§

impl<T1, T2, T3, T4, G1, G2, G3, G4> Tuple4Generator<T1, T2, T3, T4, G1, G2, G3, G4>

Source

pub fn new(gen1: G1, gen2: G2, gen3: G3, gen4: G4) -> Self

Trait Implementations§

Source§

impl<T1, T2, T3, T4, G1, G2, G3, G4> Generator<(T1, T2, T3, T4)> for Tuple4Generator<T1, T2, T3, T4, G1, G2, G3, G4>
where T1: Clone + 'static, T2: Clone + 'static, T3: Clone + 'static, T4: Clone + 'static, G1: Generator<T1>, G2: Generator<T2>, G3: Generator<T3>, G4: Generator<T4>,

Source§

fn generate( &self, rng: &mut dyn RngCore, config: &GeneratorConfig, ) -> (T1, T2, T3, T4)

Generate a random value of type T using the provided RNG and configuration
Source§

fn shrink( &self, value: &(T1, T2, T3, T4), ) -> Box<dyn Iterator<Item = (T1, T2, T3, T4)>>

Create an iterator of shrunk values from the given value

Auto Trait Implementations§

§

impl<T1, T2, T3, T4, G1, G2, G3, G4> Freeze for Tuple4Generator<T1, T2, T3, T4, G1, G2, G3, G4>
where G1: Freeze, G2: Freeze, G3: Freeze, G4: Freeze,

§

impl<T1, T2, T3, T4, G1, G2, G3, G4> RefUnwindSafe for Tuple4Generator<T1, T2, T3, T4, G1, G2, G3, G4>

§

impl<T1, T2, T3, T4, G1, G2, G3, G4> Send for Tuple4Generator<T1, T2, T3, T4, G1, G2, G3, G4>
where G1: Send, G2: Send, G3: Send, G4: Send, T1: Send, T2: Send, T3: Send, T4: Send,

§

impl<T1, T2, T3, T4, G1, G2, G3, G4> Sync for Tuple4Generator<T1, T2, T3, T4, G1, G2, G3, G4>
where G1: Sync, G2: Sync, G3: Sync, G4: Sync, T1: Sync, T2: Sync, T3: Sync, T4: Sync,

§

impl<T1, T2, T3, T4, G1, G2, G3, G4> Unpin for Tuple4Generator<T1, T2, T3, T4, G1, G2, G3, G4>
where G1: Unpin, G2: Unpin, G3: Unpin, G4: Unpin, T1: Unpin, T2: Unpin, T3: Unpin, T4: Unpin,

§

impl<T1, T2, T3, T4, G1, G2, G3, G4> UnwindSafe for Tuple4Generator<T1, T2, T3, T4, G1, G2, G3, G4>

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> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V