Struct FilterMap
#[must_use = "strategies do nothing unless used"]
pub struct FilterMap<S, F> { /* private fields */ }
Strategy and ValueTree filter_map adaptor.
See Strategy::prop_filter_map().
Trait Implementations
impl<S: Clone, F> Clone for FilterMap<S, F>
fn clone(&self) -> Self
impl<S: Debug, F> Debug for FilterMap<S, F>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<S: Strategy, F: Fn(S::Value) -> Option<O>, O: Debug> Strategy for FilterMap<S, F>
type Tree = FilterMapValueTree<<S as Strategy>::Tree, F, O>;type Value = O;fn new_tree(&self, runner: &mut TestRunner) -> NewTree<Self>