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