[][src]Trait containers_rs::Container

pub trait Container<E> {
    fn add(&mut self, element: E);
fn len(&self) -> usize; }

Trait for a simple container.

Required methods

fn add(&mut self, element: E)

Add an element to the container.

fn len(&self) -> usize

Get the size of the container.

Loading content...

Implementors

Loading content...