Struct MaybeErr
#[must_use = "strategies do nothing unless used"]
pub struct MaybeErr<T, E>(/* private field */)
where
T: Strategy,
E: Strategy,;
Strategy which generates Results using Ok and Err values from two
delegate strategies.
Shrinks to Ok.
Trait Implementations
impl<T, E> Clone for MaybeErr<T, E>
where
T: Strategy + Clone,
E: Strategy + Clone,
fn clone(&self) -> Self
impl<T, E> Strategy for MaybeErr<T, E>
where
T: Strategy,
E: Strategy,
type Tree = MaybeErrValueTree<T, E>;type Value = Result<<T as Strategy>::Value, <E as Strategy>::Value>;fn new_tree(&self, runner: &mut TestRunner) -> NewTree<Self>
impl<T: Strategy + Debug, E: Strategy + Debug> Debug for MaybeErr<T, E>
fn fmt(&self, f: &mut Formatter<'_>) -> Result