Struct proptest::strategy::FlattenValueTree
source · pub struct FlattenValueTree<S: ValueTree>where
S::Value: Strategy,{ /* private fields */ }
Expand description
The ValueTree
produced by Flatten
.
Trait Implementations§
source§impl<S> Clone for FlattenValueTree<S>where
S::Value: Strategy + Clone,
S: Clone + ValueTree,
<S::Value as Strategy>::Tree: Clone,
impl<S> Clone for FlattenValueTree<S>where S::Value: Strategy + Clone, S: Clone + ValueTree, <S::Value as Strategy>::Tree: Clone,
source§impl<S> Debug for FlattenValueTree<S>where
S::Value: Strategy,
S: Debug + ValueTree,
<S::Value as Strategy>::Tree: Debug,
impl<S> Debug for FlattenValueTree<S>where S::Value: Strategy, S: Debug + ValueTree, <S::Value as Strategy>::Tree: Debug,
source§impl<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
.source§fn 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
source§fn 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