pub struct Tuple5<A, B, C, D, E> { /* private fields */ }Expand description
A strategy for generating 5-tuples
Trait Implementations§
Source§impl<A, B, C, D, E> Strategy for Tuple5<A, B, C, D, E>
impl<A, B, C, D, E> Strategy for Tuple5<A, B, C, D, E>
Source§type Value = (<A as Strategy>::Value, <B as Strategy>::Value, <C as Strategy>::Value, <D as Strategy>::Value, <E as Strategy>::Value)
type Value = (<A as Strategy>::Value, <B as Strategy>::Value, <C as Strategy>::Value, <D as Strategy>::Value, <E as Strategy>::Value)
The type of values this strategy generates
Source§fn generate<RNG: Rng>(
&self,
rng: &mut RNG,
config: &GeneratorConfig,
) -> Self::Value
fn generate<RNG: Rng>( &self, rng: &mut RNG, config: &GeneratorConfig, ) -> Self::Value
Generate a value using this strategy
Source§fn shrink(&self, value: &Self::Value) -> Box<dyn Iterator<Item = Self::Value>>
fn shrink(&self, value: &Self::Value) -> Box<dyn Iterator<Item = Self::Value>>
Create an iterator of shrunk values from the given value
Source§fn map<F, U>(self, f: F) -> Map<Self, F>
fn map<F, U>(self, f: F) -> Map<Self, F>
Map this strategy to produce values of a different type
Auto Trait Implementations§
impl<A, B, C, D, E> Freeze for Tuple5<A, B, C, D, E>
impl<A, B, C, D, E> RefUnwindSafe for Tuple5<A, B, C, D, E>
impl<A, B, C, D, E> Send for Tuple5<A, B, C, D, E>
impl<A, B, C, D, E> Sync for Tuple5<A, B, C, D, E>
impl<A, B, C, D, E> Unpin for Tuple5<A, B, C, D, E>
impl<A, B, C, D, E> UnwindSafe for Tuple5<A, B, C, D, E>
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