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

Method has_trunk

atomic-core/src/crdt/apply/trunk.rs:407–409  ·  view source on GitHub ↗
(&self, id: TrunkId)

Source from the content-addressed store, hash-verified

405 }
406
407 fn has_trunk(&self, id: TrunkId) -> Result<bool, Self::Error> {
408 Ok(self.trunks.contains_key(&id))
409 }
410
411 fn del_trunk(&mut self, id: TrunkId) -> Result<bool, Self::Error> {
412 if let Some(trunk) = self.trunks.remove(&id) {

Callers 1

apply_createFunction · 0.45

Calls 1

contains_keyMethod · 0.80

Tested by

no test coverage detected