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

Method has_trunk

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

Source from the content-addressed store, hash-verified

464 }
465
466 fn has_trunk(&self, id: TrunkId) -> Result<bool, Self::Error> {
467 Ok(self.trunks.contains_key(&id))
468 }
469
470 fn del_trunk(&mut self, id: TrunkId) -> Result<bool, Self::Error> {
471 Ok(self.trunks.remove(&id).is_some())

Callers

nothing calls this directly

Calls 1

contains_keyMethod · 0.80

Tested by

no test coverage detected