MCPcopy Create free account
hub / github.com/cosdata/cosdata / with_value_mut

Method with_value_mut

src/models/common.rs:656–663  ·  view source on GitHub ↗
(&self, k: &K, f: F)

Source from the content-addressed store, hash-verified

654 }
655
656 pub fn with_value_mut<F, R>(&self, k: &K, f: F) -> Option<R>
657 where
658 F: Fn(&mut V) -> R,
659 {
660 let index = self.hash_key(k);
661 let mut ht = self.hash_table_list[index].lock().unwrap();
662 ht.get_mut(k).map(f)
663 }
664
665 pub fn map_m<F>(&self, f: F)
666 where

Callers 4

deleteMethod · 0.80
deleteMethod · 0.80
deleteMethod · 0.80

Calls 1

hash_keyMethod · 0.80