pub fn new(cap: usize) -> ClockCache<K, V> {
        ClockCache {
            map: HashMap::with_capacity(cap),
            entries: Vec::with_capacity(cap),
            bits: BitVec::from_fn(cap, |_| false),
            cap,
            idx: 0,
        }
    }
/// Create a new ClockCache that holds at most `cap` items.
///
/// # Example
///
/// ```
/// use clock_cache::ClockCache;
/// let mut cache: ClockCache<isize, &str> = ClockCache::new(10);
/// ```
Create a new ClockCache that holds at most `cap` items.
Create a new ClockCache that holds at most ` cap ` items .
pub fn new(cap: usize) -> ClockCache<K, V> {
        ClockCache {
            map: HashMap::with_capacity(cap),
            entries: Vec::with_capacity(cap),
            bits: BitVec::from_fn(cap, |_| false),
            cap,
            idx: 0,
        }
    }
pub fn new ( cap : usize ) -> ClockCache < K , V > { ClockCache { map : HashMap :: with_capacity ( cap ) , entries : Vec :: with_capacity ( cap ) , bits : BitVec :: from_fn ( cap , | _ | false ) , cap , idx : 0 , } }
Create a new ClockCache that holds at most `cap` items.
Create a new ClockCache that holds at most ` cap ` items .
cap
usize
example
None