Trait LinkedListExt

Source
pub trait LinkedListExt<E>: Sealed {
    // Required method
    fn former(    ) -> CollectionFormer<E, LinkedListDefinition<E, (), LinkedList<E>, ReturnStorage>>;
}
Expand description

Provides an extension method for lists to facilitate the use of the builder pattern.

This trait extends the LinkedList type, enabling it to use the LinkedListFormer interface directly. This allows for fluent, expressive construction and manipulation of lists, integrating seamlessly with the builder pattern provided by the former framework. It’s a convenience trait that simplifies creating configured list builders with default settings.

Required Methods§

Source

fn former() -> CollectionFormer<E, LinkedListDefinition<E, (), LinkedList<E>, ReturnStorage>>

Initializes a builder pattern for LinkedList using a default LinkedListFormer.

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> LinkedListExt<E> for LinkedList<E>

Implementors§