former_types

Trait BinaryHeapExt

Source
pub trait BinaryHeapExt<E>: Sealed
where E: Ord,
{ // Required method fn former() -> BinaryHeapFormer<E, (), BinaryHeap<E>, ReturnStorage>; }
Expand description

Provides an extension method for binary heaps to facilitate the use of the builder pattern.

This trait extends the BinaryHeap type, enabling it to use the BinaryHeapFormer interface directly. This allows for fluent, expressive construction and manipulation of binary heaps, integrating seamlessly with the builder pattern provided by the former framework. It’s a convenience trait that simplifies creating configured binary heap builders with default settings.

Required Methods§

Source

fn former() -> BinaryHeapFormer<E, (), BinaryHeap<E>, ReturnStorage>

Initializes a builder pattern for BinaryHeap using a default BinaryHeapFormer.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<E> BinaryHeapExt<E> for BinaryHeap<E>
where E: Ord,

Implementors§