Trait Collection
pear::parsers
pub trait Collection { type Item; fn new() -> Self; fn add(&mut self, item: Self::Item); }
type Item
fn new() -> Self
fn add(&mut self, item: Self::Item)
impl<T> Collection for Vec<T>
type Item = T
impl<K: Eq + Hash, V> Collection for HashMap<K, V>
type Item = (K, V)
impl<K: Ord, V> Collection for BTreeMap<K, V>