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

Method get_trunk

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

Source from the content-addressed store, hash-verified

512 }
513
514 fn get_trunk(&self, id: TrunkId) -> Result<Option<Trunk>, Self::Error> {
515 Ok(self.trunks.get(&id).cloned())
516 }
517
518 fn has_trunk(&self, id: TrunkId) -> Result<bool, Self::Error> {
519 Ok(self.trunks.contains_key(&id))

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected