Now we use pub type BlockId = (EntryId, usize) and pub type EntryId = (usize, u8) which are pretty unreadable. For example, to get the snapshot number out of a BlockId we have to do (id.0).1. Better to wrap them in new types and provide accessor methods.
Now we use
pub type BlockId = (EntryId, usize)
andpub type EntryId = (usize, u8)
which are pretty unreadable. For example, to get the snapshot number out of aBlockId
we have to do(id.0).1
. Better to wrap them in new types and provide accessor methods.