Struct MaybeErr

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

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

Shrinks to Ok.

Implementations

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

fn type_id(self: &Self) -> TypeId

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

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

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

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

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

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

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

fn from(t: T) -> T

Returns the argument unchanged.

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

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

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

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

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

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

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

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

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

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

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

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

impl<T, U> Into for MaybeErr<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 MaybeErr<T, E>

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

impl<T, U> TryInto for MaybeErr<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 MaybeErr<T, E>

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

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

fn vzip(self: Self) -> V