[][src]Trait pear::parsers::Collection

pub trait Collection {
    type Item;
    fn new() -> Self;
fn add(&mut self, item: Self::Item); }

Associated Types

type Item

Loading content...

Required methods

fn new() -> Self

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

Loading content...

Implementations on Foreign Types

impl<T> Collection for Vec<T>[src]

type Item = T

impl<K: Eq + Hash, V> Collection for HashMap<K, V>[src]

type Item = (K, V)

impl<K: Ord, V> Collection for BTreeMap<K, V>[src]

type Item = (K, V)

Loading content...

Implementors

Loading content...