const-lru 1.0.0

A simple no_std, non-hashing, constant-capacity, constant-memory-usage LRU cache.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use const_lru::ConstLru;

#[test]
#[should_panic]
fn u128_i_panic() {
    let _c: ConstLru<u8, u8, 1, u128> = ConstLru::new();
}

#[test]
#[should_panic]
fn cap_oob_panic() {
    let _c: ConstLru<u8, u8, 256, u8> = ConstLru::new();
}