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

Method get_trunk

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

Source from the content-addressed store, hash-verified

401 }
402
403 fn get_trunk(&self, id: TrunkId) -> Result<Option<Trunk>, Self::Error> {
404 Ok(self.trunks.get(&id).cloned())
405 }
406
407 fn has_trunk(&self, id: TrunkId) -> Result<bool, Self::Error> {
408 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