former_types

Trait VecExt

Source
pub trait VecExt<E>: Sealed {
    // Required method
    fn former() -> VectorFormer<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§

Source

fn former() -> VectorFormer<E, (), Vec<E>, ReturnStorage>

Initializes a builder pattern for Vec using a default VectorFormer.

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.

Implementations on Foreign Types§

Source§

impl<E> VecExt<E> for Vec<E>

Implementors§