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>

Auto Trait Implementations

impl<S, F> Freeze for FilterMap<S, F> where S: Freeze, Arc<F>: Freeze,

impl<S, F> RefUnwindSafe for FilterMap<S, F> where S: RefUnwindSafe, Arc<F>: RefUnwindSafe,

impl<S, F> Send for FilterMap<S, F> where S: Send, Arc<F>: Send,

impl<S, F> Sync for FilterMap<S, F> where S: Sync, Arc<F>: Sync,

impl<S, F> Unpin for FilterMap<S, F> where S: Unpin, Arc<F>: Unpin,

impl<S, F> UnsafeUnpin for FilterMap<S, F> where S: UnsafeUnpin, Arc<F>: UnsafeUnpin,

impl<S, F> UnwindSafe for FilterMap<S, F> where S: UnwindSafe, Arc<F>: UnwindSafe,

Blanket Implementations

impl<T> Any for FilterMap<S, F> where T: 'static + ?Sized,

impl<T> Borrow<T> for FilterMap<S, F> where T: ?Sized,

impl<T> BorrowMut<T> for FilterMap<S, F> where T: ?Sized,

impl<T> CloneToUninit for FilterMap<S, F> where T: Clone,

impl<T> From<T> for FilterMap<S, F>

impl<T> ToOwned for FilterMap<S, F> where T: Clone,

impl<T, U> Into<U> for FilterMap<S, F> where U: From<T>,

impl<T, U> TryFrom<U> for FilterMap<S, F> where U: Into<T>,

impl<T, U> TryInto<U> for FilterMap<S, F> where U: TryFrom<T>,