pub trait VectorLike<E> {
    // Required method
    fn push(&mut self, element: E);
}
Expand description

Trait for containers that behave like a vector, providing an interface for element addition.

This trait enables the use of custom or standard vector-like containers within the builder pattern, allowing for a unified and flexible approach to constructing collections.

Required Methods§

source

fn push(&mut self, element: E)

Appends an element to the back of a formed.

Implementations on Foreign Types§

source§

impl<E> VectorLike<E> for Vec<E>

source§

fn push(&mut self, element: E)

Implementors§