Struct Filter
#[must_use = "strategies do nothing unless used"]
pub struct Filter<S, F> { /* private fields */ }
Static version of strategy::Filter.
Implementations
impl<S, F> Filter<S, F>
fn new(source: S, whence: Reason, filter: F) -> SelfAdapt strategy
sourceto reject values which do not passfilter, usingwhenceas the reported reason/location.
Trait Implementations
impl<S: Clone, F: Clone> 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: FilterFn<S::Value> + Clone> 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: FilterFn<S::Value>> ValueTree for Filter<S, F>
type Value = <S as ValueTree>::Value;fn current(&self) -> S::Valuefn simplify(&mut self) -> boolfn complicate(&mut self) -> bool