aboutsummaryrefslogtreecommitdiff
path: root/src/heapsize.rs
blob: ff0170f305bca2886941f0e46bfa28277dfa232e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
extern crate heapsize;

use self::heapsize::HeapSizeOf;
use std::hash::{Hash, BuildHasher};

use LruCache;

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()
    }
}