pub trait CollectionSize {
    // Required method
    fn size(&self) -> usize;
}
Expand description

Returns the length of self, where self is a collection.

Self is commonly a Vec or HashMap.

Required Methods§

source

fn size(&self) -> usize

Proof Definition

For any value of type Self, returns the size of the collection.

Implementations on Foreign Types§

source§

impl<K, V> CollectionSize for HashMap<K, V>

source§

fn size(&self) -> usize

source§

impl<T> CollectionSize for Vec<T>

source§

fn size(&self) -> usize

Implementors§