Trait data_structure_traits::Collection[][src]

pub trait Collection {
    fn len(&self) -> usize;

    fn is_empty(&self) -> bool { ... }
}

Required Methods

Provided Methods

Implementations on Foreign Types

impl<V> Collection for BinaryHeap<V> where
    V: Ord
[src]

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

impl<V> Collection for BTreeSet<V> where
    V: Eq + Ord
[src]

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

impl<V, S> Collection for HashSet<V, S> where
    V: Eq + Hash,
    S: BuildHasher
[src]

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

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

impl<'a> Collection for &'a str
[src]

impl Collection for String
[src]

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

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

Implementors