Type Alias former::orphan::HashMapFormer

source ·
pub type HashMapFormer<K, E, Context, Formed, End> = CollectionFormer<(K, E), HashMapDefinition<K, E, Context, Formed, End>>;
Expand description

Provides a streamlined builder interface for constructing hash map-like collections.

HashMapFormer is a type alias that configures the CollectionFormer specifically for hash maps, facilitating a more intuitive and flexible way to build and manipulate hash maps within custom data structures. This type alias simplifies the usage of hash maps in builder patterns by encapsulating complex generic parameters and leveraging the HashMapDefinition to handle the construction logic. It supports fluent chaining of key-value insertions and can be customized with various end actions to finalize the hash map upon completion.

The alias helps reduce boilerplate code and enhances readability, making the construction of hash maps in a builder pattern both efficient and expressive.

Aliased Type§

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