Struct Flatten
#[must_use = "strategies do nothing unless used"]
pub struct Flatten<S> { /* private fields */ }
Adaptor that flattens a Strategy which produces other Strategys into a
Strategy that picks one of those strategies and then picks values from
it.
Implementations
impl<S: Strategy> Flatten<S>
fn new(source: S) -> SelfWrap
sourceto flatten it.
Trait Implementations
impl<S: Clone> Clone for Flatten<S>
fn clone(&self) -> Self
impl<S: Copy> Copy for Flatten<S>
impl<S: Debug> Debug for Flatten<S>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<S: Strategy> Strategy for Flatten<S>
where
S::Value: Strategy,
type Tree = FlattenValueTree<<S as Strategy>::Tree>;type Value = <<S as Strategy>::Value as Strategy>::Value;fn new_tree(&self, runner: &mut TestRunner) -> NewTree<Self>