ruplicity icon indicating copy to clipboard operation
ruplicity copied to clipboard

Improve readability of BlockId and EntryId

Open mbrt opened this issue 9 years ago • 0 comments

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.

mbrt avatar Jul 23 '16 22:07 mbrt