former_types

Type Alias BinaryHeapFormer

Source
pub type BinaryHeapFormer<E, Context, Formed, End> = CollectionFormer<E, BinaryHeapDefinition<E, Context, Formed, End>>;
Expand description

Provides a streamlined builder interface for constructing binary heap-like collections.

BinaryHeapFormer is a type alias that configures the CollectionFormer for use specifically with binary heaps. It integrates the BinaryHeapDefinition to facilitate the fluent and dynamic construction of binary heaps, leveraging predefined settings to reduce boilerplate code. This approach enhances readability and simplifies the use of binary heaps in custom data structures where builder patterns are desired.

The alias encapsulates complex generic parameters, making the construction process more accessible and maintainable. It is particularly useful in scenarios where binary heaps are repeatedly used or configured in similar ways across different parts of an application.

Aliased Typeยง

struct BinaryHeapFormer<E, Context, Formed, End> { /* private fields */ }