/// Creates an empty cache that can hold at most `capacity` items.
///
/// # Examples
///
/// ```
/// use lru_size_cache::LruSizeCache;
/// let mut cache: LruSizeCache<i32, &str> = LruSizeCache::new(10);
/// ```
Creates an empty cache that can hold at most `capacity` items.
Creates an empty cache that can hold at most ` capacity ` items .
pub fn new(capacity: usize) -> Self {
        LruSizeCache {
            map: LinkedHashMap::new(),
            capacity: capacity,
            used: 0,
        }
    }
pub fn new ( capacity : usize ) -> Self { LruSizeCache { map : LinkedHashMap :: new ( ) , capacity : capacity , used : 0 , } }
Creates an empty cache that can hold at most `capacity` items.
Creates an empty cache that can hold at most ` capacity ` items .
capacity
usize
examples
None