stefans-utils 0.12.0

A collection of useful Rust utility functions, types, and traits.
Documentation
1
2
3
4
5
6
7
8
9
use std::collections::HashMap;

use crate::with_len::WithLen;

impl<K, V> WithLen for HashMap<K, V> {
    fn len(&self) -> usize {
        HashMap::len(self)
    }
}