Struct Map
#[must_use = "strategies do nothing unless used"]
pub struct Map<S, F> { /* private fields */ }
Strategy and ValueTree map adaptor.
See Strategy::prop_map().
Trait Implementations
impl<S: Clone, F> 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, O: Debug, F: Fn(S::Value) -> O> Strategy for Map<S, F>
type Tree = Map<<S as Strategy>::Tree, F>;type Value = O;fn new_tree(&self, runner: &mut TestRunner) -> NewTree<Self>
impl<S: ValueTree, O: Debug, F: Fn(S::Value) -> O> ValueTree for Map<S, F>
type Value = O;fn current(&self) -> Ofn simplify(&mut self) -> boolfn complicate(&mut self) -> bool