LRUCacheBlockArenaEntry

Type Alias LRUCacheBlockArenaEntry 

Source
pub type LRUCacheBlockArenaEntry<K, T> = LinkedListArenaEntry<Block<K, T>>;
Expand description

Alias representing block entries for storage in a generational arena.

Aliased Type§

pub enum LRUCacheBlockArenaEntry<K, T> {
    Occupied {
        value: Node<Block<K, T>>,
        generation: u64,
    },
    Free {
        next_free_idx: Option<usize>,
    },
    Unmapped,
}

Variants§

§

Occupied

An occupied entry containing an allocated value and the associated generation counter.

Fields

§value: Node<Block<K, T>>
§generation: u64
§

Free

Free entry pointing to next free entry in the free list.

Fields

§next_free_idx: Option<usize>
§

Unmapped

An unmapped arena entry.