len_trait
pub trait Len { fn len(&self) -> usize; fn is_empty(&self) -> bool { ... } }
A collection with a length.
fn len(&self) -> usize
Returns the length of the collection.
fn is_empty(&self) -> bool
Returns whether the collection is empty.
impl<K, V> Len for BTreeMap<K, V>
impl<T: Ord> Len for BTreeSet<T>
impl<T: Ord> Len for BinaryHeap<T>
impl<T> Len for LinkedList<T>
impl Len for OsStr
impl<T> Len for [T]
impl Len for String
impl<T> Len for Vec<T>
impl<T> Len for VecDeque<T>
impl Len for str