MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / has_leaf

Method has_leaf

atomic-core/src/crdt/apply/leaf.rs:569–571  ·  view source on GitHub ↗
(&self, id: LeafId)

Source from the content-addressed store, hash-verified

567 }
568
569 fn has_leaf(&self, id: LeafId) -> Result<bool, Self::Error> {
570 Ok(self.leaves.contains_key(&id))
571 }
572
573 fn del_leaf(&mut self, id: LeafId) -> Result<bool, Self::Error> {
574 if let Some(leaf) = self.leaves.remove(&id) {

Callers 1

apply_insertFunction · 0.45

Calls 1

contains_keyMethod · 0.80

Tested by

no test coverage detected