litemap::store

Trait StoreSlice

Source
pub trait StoreSlice<K: ?Sized, V: ?Sized>: Store<K, V> {
    type Slice: ?Sized;

    // Required method
    fn lm_get_range(&self, range: Range<usize>) -> Option<&Self::Slice>;
}

Required Associated Types§

Required Methods§

Source

fn lm_get_range(&self, range: Range<usize>) -> Option<&Self::Slice>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<K, V> StoreSlice<K, V> for &[(K, V)]

Source§

type Slice = [(K, V)]

Source§

fn lm_get_range(&self, range: Range<usize>) -> Option<&Self::Slice>

Source§

impl<K, V> StoreSlice<K, V> for Vec<(K, V)>

Source§

type Slice = [(K, V)]

Source§

fn lm_get_range(&self, range: Range<usize>) -> Option<&Self::Slice>

Implementors§