/// Searches for an exact match for the given key.
Searches for an exact match for the given key.
Searches for an exact match for the given key .
pub async fn find(&self, search_key: &K) -> Result<Option<Item<K, V>>, Error>
    where
        K: Clone,
        V: Clone,
    {
        let layer_set = self.layer_set();
        let mut merger = layer_set.merger();
        let iter = merger.seek(Bound::Included(search_key)).await?;
        Ok(match iter.get() {
            Some(ItemRef { key, value }) if key == search_key => {
                Some(Item { key: key.clone(), value: value.clone() })
            }
            _ => None,
        })
    }
pub async fn find ( & self , search_key : & K ) -> Result < Option < Item < K , V > > , Error > where K : Clone , V : Clone , { let layer_set = self . layer_set ( ) ; let mut merger = layer_set . merger ( ) ; let iter = merger . seek ( Bound :: Included ( search_key ) ) . await ? ; Ok ( match iter . get ( ) { Some ( ItemRef { key , value } ) if key == search_key => { Some ( Item { key : key . clone ( ) , value : value . clone ( ) } ) } _ => None , } ) }
Searches for an exact match for the given key.
Searches for an exact match for the given key .
&self
search_key
&K