Trait ValueLookup

Source
pub(crate) trait ValueLookup<V: Copy> {
    // Required method
    fn item_value(&self, bucket: usize, item: usize) -> V;
}
Expand description

Trait for bucket arrays that include storage for values

Values are opaque data, any Copy type may be used.

Required Methods§

Source

fn item_value(&self, bucket: usize, item: usize) -> V

Retrieve the Value for a particular item

Implementors§

Source§

impl<'k, 'v, const N: usize, const CAP: usize, C: Count, K: Key, KS: KeyStorage<K>, V: Copy> ValueLookup<V> for KeyValueBucketArray<'k, 'v, N, CAP, C, K, KS, V>

Source§

impl<'v, const N: usize, const CAP: usize, C: Count, K: Key, V: Copy> ValueLookup<V> for ValueBucketArray<'v, N, CAP, C, K, V>