Trait Container

Source
pub trait Container {
    type Item;

    // Required method
    fn add(&mut self, item: Self::Item);
}
Expand description

A trait that should be implemented by types that can contain other deserializable types.

Required Associated Types§

Source

type Item

The type of items in the container.

Required Methods§

Source

fn add(&mut self, item: Self::Item)

Adds an item to the container.

Implementations on Foreign Types§

Source§

impl<T> Container for Option<T>

Source§

type Item = T

Source§

fn add(&mut self, item: Self::Item)

Source§

impl<T> Container for Vec<T>

Source§

type Item = T

Source§

fn add(&mut self, item: Self::Item)

Implementors§