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