Struct proptest::result::MaybeErrValueTree
source · [−]Expand description
ValueTree
type corresponding to MaybeErr
.
Trait Implementations
sourceimpl<T: Strategy, E: Strategy> Clone for MaybeErrValueTree<T, E> where
T::Tree: Clone,
E::Tree: Clone,
impl<T: Strategy, E: Strategy> Clone for MaybeErrValueTree<T, E> where
T::Tree: Clone,
E::Tree: Clone,
sourceimpl<T: Strategy, E: Strategy> Debug for MaybeErrValueTree<T, E> where
T::Tree: Debug,
E::Tree: Debug,
impl<T: Strategy, E: Strategy> Debug for MaybeErrValueTree<T, E> where
T::Tree: Debug,
E::Tree: Debug,
sourceimpl<T, E> ValueTree for MaybeErrValueTree<T, E> where
T: Strategy,
E: Strategy,
impl<T, E> ValueTree for MaybeErrValueTree<T, E> where
T: Strategy,
E: Strategy,
type Value = Result<<T as Strategy>::Value, <E as Strategy>::Value>
type Value = Result<<T as Strategy>::Value, <E as Strategy>::Value>
The type of the value produced by this ValueTree
.
sourcefn simplify(&mut self) -> bool
fn simplify(&mut self) -> bool
Attempts to simplify the current value. Notionally, this sets the “high” value to the current value, and the current value to a “halfway point” between high and low, rounding towards low. Read more
sourcefn complicate(&mut self) -> bool
fn complicate(&mut self) -> bool
Attempts to partially undo the last simplification. Notionally, this sets the “low” value to one plus the current value, and the current value to a “halfway point” between high and the new low, rounding towards low. Read more
Auto Trait Implementations
impl<T, E> !RefUnwindSafe for MaybeErrValueTree<T, E>
impl<T, E> Send for MaybeErrValueTree<T, E> where
E: Send + Sync,
T: Send + Sync,
<E as Strategy>::Tree: Send,
<T as Strategy>::Tree: Send,
<E as Strategy>::Value: Send + Sync,
<T as Strategy>::Value: Send + Sync,
impl<T, E> Sync for MaybeErrValueTree<T, E> where
E: Send + Sync,
T: Send + Sync,
<E as Strategy>::Tree: Sync,
<T as Strategy>::Tree: Sync,
<E as Strategy>::Value: Send + Sync,
<T as Strategy>::Value: Send + Sync,
impl<T, E> Unpin for MaybeErrValueTree<T, E> where
<E as Strategy>::Tree: Unpin,
<T as Strategy>::Tree: Unpin,
<E as Strategy>::Value: Unpin,
<T as Strategy>::Value: Unpin,
impl<T, E> !UnwindSafe for MaybeErrValueTree<T, E>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more