Struct Map

struct Map<S, F> { ... }

Static version of strategy::Map.

Implementations

impl<S, F> Map<S, F>

fn new(source: S, fun: F) -> Self

Adapt strategy source by applying fun to values it produces.

impl<S, F> Freeze for Map<S, F>

impl<S, F> RefUnwindSafe for Map<S, F>

impl<S, F> Send for Map<S, F>

impl<S, F> Sync for Map<S, F>

impl<S, F> Unpin for Map<S, F>

impl<S, F> UnwindSafe for Map<S, F>

impl<S: $crate::clone::Clone, F: $crate::clone::Clone> Clone for Map<S, F>

fn clone(self: &Self) -> Map<S, F>

impl<S: Strategy, F: Clone + MapFn<<S as >::Value>> Strategy for Map<S, F>

fn new_tree(self: &Self, runner: &mut TestRunner) -> NewTree<Self>

impl<S: ValueTree, F: MapFn<<S as >::Value>> ValueTree for Map<S, F>

fn current(self: &Self) -> <F as >::Output
fn simplify(self: &mut Self) -> bool
fn complicate(self: &mut Self) -> bool

impl<S: fmt::Debug, F> Debug for Map<S, F>

fn fmt(self: &Self, f: &mut fmt::Formatter<'_>) -> fmt::Result

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

fn type_id(self: &Self) -> TypeId

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

fn borrow(self: &Self) -> &T

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

fn borrow_mut(self: &mut Self) -> &mut T

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

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

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

fn from(t: T) -> T

Returns the argument unchanged.

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

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for Map<S, F>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for Map<S, F>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Map<S, F>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl<V, T> VZip for Map<S, F>

fn vzip(self: Self) -> V