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

Method get_trunk

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

Source from the content-addressed store, hash-verified

460 }
461
462 fn get_trunk(&self, id: TrunkId) -> Result<Option<Trunk>, Self::Error> {
463 Ok(self.trunks.get(&id).cloned())
464 }
465
466 fn has_trunk(&self, id: TrunkId) -> Result<bool, Self::Error> {
467 Ok(self.trunks.contains_key(&id))

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected