Trait len_trait::Len
[−]
[src]
pub trait Len { fn len(&self) -> usize; fn is_empty(&self) -> bool { ... } }
A collection with a length.
Obtaining the length of the collection must take O(1) time and space.
Required Methods
Provided Methods
Implementors
impl<T> Len for [T]
impl Len for str
impl Len for CStr
impl Len for CString
impl Len for OsStr
impl Len for OsString
impl<K: Ord, V> Len for BTreeMap<K, V>
impl<T: Ord> Len for BTreeSet<T>
impl<T: Ord> Len for BinaryHeap<T>
impl<K: Eq + Hash, V> Len for HashMap<K, V>
impl<T: Eq + Hash> Len for HashSet<T>
impl<T> Len for LinkedList<T>
impl Len for String
impl<T> Len for Vec<T>
impl<T> Len for VecDeque<T>
impl Len for BitSet
impl Len for BitVec
impl<T> Len for BList<T>
impl<T: CLike> Len for EnumSet<T>
impl<T: Ord> Len for IntervalHeap<T>
impl<K: Eq, V> Len for LinearMap<K, V>
impl<K: Eq + Hash, V> Len for LinkedHashMap<K, V>
impl<K: Eq + Hash, V> Len for LruCache<K, V>
impl<T> Len for VecMap<T>