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

Method get_trunk

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

Source from the content-addressed store, hash-verified

394 }
395
396 fn get_trunk(&self, id: TrunkId) -> Result<Option<Trunk>, Self::Error> {
397 Ok(self.trunks.get(&id).cloned())
398 }
399
400 fn has_trunk(&self, id: TrunkId) -> Result<bool, Self::Error> {
401 Ok(self.trunks.contains_key(&id))

Callers 8

apply_deleteFunction · 0.45
apply_moveFunction · 0.45
apply_undeleteFunction · 0.45
validate_trunk_stateFunction · 0.45
test_apply_createFunction · 0.45
test_apply_deleteFunction · 0.45
test_apply_moveFunction · 0.45
test_apply_undeleteFunction · 0.45

Calls 1

getMethod · 0.65

Tested by 4

test_apply_createFunction · 0.36
test_apply_deleteFunction · 0.36
test_apply_moveFunction · 0.36
test_apply_undeleteFunction · 0.36