kg-utils 0.4.0

Various collections and utilities.
1
2
3
4
5
6
7
8
9
10
11
12
13
extern crate heapsize;

use std::hash::{BuildHasher, Hash};

use super::LruCache;

use self::heapsize::HeapSizeOf;

impl<K: Eq + Hash + HeapSizeOf, V: HeapSizeOf, S: BuildHasher> HeapSizeOf for LruCache<K, V, S> {
    fn heap_size_of_children(&self) -> usize {
        self.map.heap_size_of_children()
    }
}