Struct MaybeOk

struct MaybeOk<T, E>(_)
where
    T: Strategy,
    E: Strategy

Strategy which generates Results using Ok and Err values from two delegate strategies.

Shrinks to Err.

Implementations

impl<T> Any for MaybeOk<T, E>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for MaybeOk<T, E>

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

impl<T> BorrowMut for MaybeOk<T, E>

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

impl<T> CloneToUninit for MaybeOk<T, E>

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

impl<T> From for MaybeOk<T, E>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for MaybeOk<T, E>

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

impl<T, E> Clone for MaybeOk<T, E>

fn clone(self: &Self) -> MaybeOk<T, E>

impl<T, E> Freeze for MaybeOk<T, E>

impl<T, E> RefUnwindSafe for MaybeOk<T, E>

impl<T, E> Send for MaybeOk<T, E>

impl<T, E> Strategy for MaybeOk<T, E>

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

impl<T, E> Sync for MaybeOk<T, E>

impl<T, E> Unpin for MaybeOk<T, E>

impl<T, E> UnwindSafe for MaybeOk<T, E>

impl<T, U> Into for MaybeOk<T, E>

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 MaybeOk<T, E>

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

impl<T, U> TryInto for MaybeOk<T, E>

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

impl<T: Strategy + fmt::Debug, E: Strategy + fmt::Debug> Debug for MaybeOk<T, E>

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

impl<V, T> VZip for MaybeOk<T, E>

fn vzip(self: Self) -> V