Struct BTreeMapStrategy
#[must_use = "strategies do nothing unless used"]
pub struct BTreeMapStrategy<K, V>(/* private field */)
where
K: Strategy,
V: Strategy,
K::Value: Ord,;
Strategy to create BTreeMaps with a length in a certain range.
Created by the btree_map() function in the same module.
Trait Implementations
impl<K, V> Clone for BTreeMapStrategy<K, V>
where
K: Strategy + Clone,
V: Strategy + Clone,
K::Value: Ord,
fn clone(&self) -> Self
impl<K, V> Debug for BTreeMapStrategy<K, V>
where
K: Strategy + Debug,
V: Strategy + Debug,
K::Value: Ord,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<K, V> Strategy for BTreeMapStrategy<K, V>
where
K: Strategy,
V: Strategy,
K::Value: Ord,
type Tree = BTreeMapValueTree<<K as Strategy>::Tree, <V as Strategy>::Tree>;type Value = BTreeMap<<K as Strategy>::Value, <V as Strategy>::Value>;fn new_tree(&self, runner: &mut TestRunner) -> NewTree<Self>