Struct Map
#[must_use = "strategies do nothing unless used"]
pub struct Map<S, F> { /* private fields */ }
Static version of strategy::Map.
Implementations
impl<S, F> Map<S, F>
fn new(source: S, fun: F) -> SelfAdapt strategy
sourceby applyingfunto values it produces.
Trait Implementations
impl<S: Clone, F: Clone> Clone for Map<S, F>
fn clone(&self) -> Self
impl<S: Debug, F> Debug for Map<S, F>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<S: Strategy, F: Clone + MapFn<S::Value>> Strategy for Map<S, F>
type Tree = Map<<S as Strategy>::Tree, F>;type Value = <F as MapFn<<S as Strategy>::Value>>::Output;fn new_tree(&self, runner: &mut TestRunner) -> NewTree<Self>
impl<S: ValueTree, F: MapFn<S::Value>> ValueTree for Map<S, F>
type Value = <F as MapFn<<S as ValueTree>::Value>>::Output;fn current(&self) -> F::Outputfn simplify(&mut self) -> boolfn complicate(&mut self) -> bool