pub trait VecExt<E>: Sealed {
// Required method
fn former( ) -> CollectionFormer<E, VectorDefinition<E, (), Vec<E>, ReturnStorage>>;
}
Expand description
Provides an extension method for vectors to facilitate the use of the builder pattern.
This trait extends the Vec
type, enabling it to use the VectorFormer
interface directly.
This allows for fluent, expressive construction and manipulation of vectors, integrating seamlessly
with the builder pattern provided by the former
framework. It’s a convenience trait that simplifies
creating configured vector builders with default settings.
Required Methods§
sourcefn former() -> CollectionFormer<E, VectorDefinition<E, (), Vec<E>, ReturnStorage>>
fn former() -> CollectionFormer<E, VectorDefinition<E, (), Vec<E>, ReturnStorage>>
Initializes a builder pattern for Vec
using a default VectorFormer
.
Object Safety§
This trait is not object safe.