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

Method get_trunk

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

Source from the content-addressed store, hash-verified

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

Callers 4

test_put_and_get_trunkFunction · 0.45
test_update_trunk_pathFunction · 0.45
test_mark_trunk_deletedFunction · 0.45
test_mark_trunk_aliveFunction · 0.45

Calls 1

getMethod · 0.65

Tested by 4

test_put_and_get_trunkFunction · 0.36
test_update_trunk_pathFunction · 0.36
test_mark_trunk_deletedFunction · 0.36
test_mark_trunk_aliveFunction · 0.36