pub trait BTreeSetExt<E>: Sealedwhere
E: Ord,{
// Required method
fn former() -> BTreeSetFormer<E, (), BTreeSet<E>, ReturnStorage>;
}Expand description
Provides an extension method for binary tree sets to facilitate the use of the builder pattern.
This trait extends the BTreeSet type, enabling it to use the BTreeSetFormer interface directly.
This allows for fluent, expressive construction and manipulation of binary tree sets, integrating seamlessly
with the builder pattern provided by the former framework. It’s a convenience trait that simplifies
creating configured binary tree set builders with default settings.
Required Methods§
Sourcefn former() -> BTreeSetFormer<E, (), BTreeSet<E>, ReturnStorage>
fn former() -> BTreeSetFormer<E, (), BTreeSet<E>, ReturnStorage>
Initializes a builder pattern for BTreeSet using a default BTreeSetFormer.
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.