Struct proptest::strategy::FlattenValueTree
source · [−]Expand description
The ValueTree
produced by Flatten
.
Trait Implementations
sourceimpl<S: ValueTree> Clone for FlattenValueTree<S> where
S::Value: Strategy + Clone,
S: Clone,
<S::Value as Strategy>::Tree: Clone,
impl<S: ValueTree> Clone for FlattenValueTree<S> where
S::Value: Strategy + Clone,
S: Clone,
<S::Value as Strategy>::Tree: Clone,
sourceimpl<S: ValueTree> Debug for FlattenValueTree<S> where
S::Value: Strategy,
S: Debug,
<S::Value as Strategy>::Tree: Debug,
impl<S: ValueTree> Debug for FlattenValueTree<S> where
S::Value: Strategy,
S: Debug,
<S::Value as Strategy>::Tree: Debug,
sourceimpl<S: ValueTree> ValueTree for FlattenValueTree<S> where
S::Value: Strategy,
impl<S: ValueTree> ValueTree for FlattenValueTree<S> where
S::Value: Strategy,
type Value = <<S as ValueTree>::Value as Strategy>::Value
type Value = <<S as ValueTree>::Value 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<S> !RefUnwindSafe for FlattenValueTree<S>
impl<S> Send for FlattenValueTree<S> where
S: Send,
<<S as ValueTree>::Value as Strategy>::Tree: Send,
impl<S> Sync for FlattenValueTree<S> where
S: Sync,
<<S as ValueTree>::Value as Strategy>::Tree: Sync,
impl<S> Unpin for FlattenValueTree<S> where
S: Unpin,
<<S as ValueTree>::Value as Strategy>::Tree: Unpin,
impl<S> !UnwindSafe for FlattenValueTree<S>
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