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) -> O
fn simplify(&mut self) -> bool
fn complicate(&mut self) -> bool

Auto Trait Implementations

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

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

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

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

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

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

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

Blanket Implementations

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

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

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

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

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

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

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

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

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