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

Alias representing block entries for storage in a generational arena.

Aliased Type§

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

Variants§

§

Occupied

Fields

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

Free

Fields

§next_free_idx: Option<usize>
§

Unmapped

Trait Implementations§

source§

impl<T: Clone> Clone for Entry<T>

source§

fn clone(&self) -> Entry<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: Debug> Debug for Entry<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T> Default for Entry<T>

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<T: PartialEq> PartialEq<Entry<T>> for Entry<T>

source§

fn eq(&self, other: &Entry<T>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<T: Copy> Copy for Entry<T>

source§

impl<T: Eq> Eq for Entry<T>

source§

impl<T> StructuralEq for Entry<T>

source§

impl<T> StructuralPartialEq for Entry<T>