Trait std::collections::Collection[src]
pub trait Collection {
fn len(&self) -> uint;
fn is_empty(&self) -> bool { ... }
}A trait to represent the abstract idea of a container. The only concrete knowledge known is the number of elements contained within.
Required Methods
Provided Methods
Implementors
impl<'a, T> Collection for &'a [T]impl<'a> Collection for &'a strimpl<K: Eq + Hash<S>, V, S, H: Hasher<S>> Collection for HashMap<K, V, H>impl<T: Eq + Hash<S>, S, H: Hasher<S>> Collection for HashSet<T, H>impl<K: Hash + Eq, V> Collection for LruCache<K, V>impl Collection for BitvSetimpl<T> Collection for DList<T>impl<T: Ord> Collection for PriorityQueue<T>impl<T> Collection for RingBuf<T>impl<V> Collection for SmallIntMap<V>impl<K: Ord, V> Collection for TreeMap<K, V>impl<T: Ord> Collection for TreeSet<T>impl<T> Collection for TrieMap<T>impl Collection for TrieSetimpl<'a> Collection for MaybeOwned<'a>impl Collection for Stringimpl<T> Collection for Vec<T>impl<T> Collection for CVec<T>impl Collection for CString