StoreEntry

Trait StoreEntry 

Source
pub trait StoreEntry<'a, K, V> {
    // Required methods
    fn is_occupied(&self) -> bool;
    fn is_vacant(&self) -> bool;
}
Expand description

The StoreEntry trait establishes a common interface for all entries within a key-value store. These types enable in-place manipulation of key-value pairs by allowing for keys to point to empty or vacant slots within the store.

Required Methods§

Source

fn is_occupied(&self) -> bool

checks if the entry is occupied

Source

fn is_vacant(&self) -> bool

checks if the entry is vacant

Implementations on Foreign Types§

Source§

impl<'a, K, V> StoreEntry<'a, K, V> for Entry<'a, K, V>

Source§

impl<K, V> StoreEntry<'_, K, V> for Entry<'_, K, V>

Implementors§