Trait former::HashSetExt
source · pub trait HashSetExt<K>: Sealed{
// Required method
fn former() -> CollectionFormer<K, HashSetDefinition<K>>;
}
Expand description
Provides an extension method for HashSet
to facilitate the use of the builder pattern.
This trait extends HashSet
, enabling direct use of the HashSetFormer
interface for fluent and expressive
set construction. It simplifies the process of building HashSet
instances by providing a straightforward
way to start the builder pattern with default context and termination behavior.
Required Methods§
sourcefn former() -> CollectionFormer<K, HashSetDefinition<K>>
fn former() -> CollectionFormer<K, HashSetDefinition<K>>
Initializes a builder pattern for HashSet
using a default HashSetFormer
.
Object Safety§
This trait is not object safe.