/// Creates an empty cache that can hold at most `capacity` items with the given hash builder.
Creates an empty cache that can hold at most `capacity` items with the given hash builder.
Creates an empty cache that can hold at most ` capacity ` items with the given hash builder .
pub fn with_hasher(capacity: usize, hash_builder: S) -> Self {
        LruSizeCache {
            map: LinkedHashMap::with_hasher(hash_builder),
            capacity: capacity,
            used: 0,
        }
    }
pub fn with_hasher ( capacity : usize , hash_builder : S ) -> Self { LruSizeCache { map : LinkedHashMap :: with_hasher ( hash_builder ) , capacity : capacity , used : 0 , } }
Creates an empty cache that can hold at most `capacity` items with the given hash builder.
Creates an empty cache that can hold at most ` capacity ` items with the given hash builder .
capacity
usize
hash_builder
S