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) -> BinaryHeapStrategy<T>

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>

Auto Trait Implementations

impl<T> Freeze for BinaryHeapStrategy<T> where Map<VecStrategy<T>, VecToBinHeap>: Freeze,

impl<T> RefUnwindSafe for BinaryHeapStrategy<T> where Map<VecStrategy<T>, VecToBinHeap>: RefUnwindSafe,

impl<T> Send for BinaryHeapStrategy<T> where Map<VecStrategy<T>, VecToBinHeap>: Send,

impl<T> Sync for BinaryHeapStrategy<T> where Map<VecStrategy<T>, VecToBinHeap>: Sync,

impl<T> Unpin for BinaryHeapStrategy<T> where Map<VecStrategy<T>, VecToBinHeap>: Unpin,

impl<T> UnsafeUnpin for BinaryHeapStrategy<T> where Map<VecStrategy<T>, VecToBinHeap>: UnsafeUnpin,

impl<T> UnwindSafe for BinaryHeapStrategy<T> where Map<VecStrategy<T>, VecToBinHeap>: UnwindSafe,

Blanket Implementations

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for BinaryHeapStrategy<T> where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for BinaryHeapStrategy<T> where ST: ?Sized, DT: ?Sized,

impl<T> Any for BinaryHeapStrategy<T> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for BinaryHeapStrategy<T> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for BinaryHeapStrategy<T> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for BinaryHeapStrategy<T> where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for BinaryHeapStrategy<T>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Read<Exclusive, BecauseExclusive> for BinaryHeapStrategy<T> where T: ?Sized,

impl<T> ToOwned for BinaryHeapStrategy<T> where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for BinaryHeapStrategy<T> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for BinaryHeapStrategy<T> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for BinaryHeapStrategy<T> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

impl<V, T> VZip<V> for BinaryHeapStrategy<T> where V: MultiLane<T>,

fn vzip(self) -> V