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>
impl<T1, T2, T3, T4, G1, G2, G3, G4> Tuple4Generator<T1, T2, T3, T4, G1, G2, G3, G4>
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>
impl<T1, T2, T3, T4, G1, G2, G3, G4> Generator<(T1, T2, T3, T4)> for Tuple4Generator<T1, T2, T3, T4, G1, G2, G3, G4>
Source§fn generate(
&self,
rng: &mut dyn RngCore,
config: &GeneratorConfig,
) -> (T1, T2, T3, T4)
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)>>
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>
impl<T1, T2, T3, T4, G1, G2, G3, G4> RefUnwindSafe for Tuple4Generator<T1, T2, T3, T4, G1, G2, G3, G4>where
G1: RefUnwindSafe,
G2: RefUnwindSafe,
G3: RefUnwindSafe,
G4: RefUnwindSafe,
T1: RefUnwindSafe,
T2: RefUnwindSafe,
T3: RefUnwindSafe,
T4: RefUnwindSafe,
impl<T1, T2, T3, T4, G1, G2, G3, G4> Send for Tuple4Generator<T1, T2, T3, T4, G1, G2, G3, G4>
impl<T1, T2, T3, T4, G1, G2, G3, G4> Sync for Tuple4Generator<T1, T2, T3, T4, G1, G2, G3, G4>
impl<T1, T2, T3, T4, G1, G2, G3, G4> Unpin for Tuple4Generator<T1, T2, T3, T4, G1, G2, G3, G4>
impl<T1, T2, T3, T4, G1, G2, G3, G4> UnwindSafe for Tuple4Generator<T1, T2, T3, T4, G1, G2, G3, G4>where
G1: UnwindSafe,
G2: UnwindSafe,
G3: UnwindSafe,
G4: UnwindSafe,
T1: UnwindSafe,
T2: UnwindSafe,
T3: UnwindSafe,
T4: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more