I've added a new error type for it to make failures explicit, but you could arguably also just use as usize and live with potentially weird behaviour when large values are truncated. Presumably, in those cases you'd crash anyway when trying to load the data into memory, though I haven't looked into it more.
I've also silenced some warnings in a separate commit by hiding them behind a cfg tag because they annoyed me during development, but I'm happy to remove those changes if you prefer.
Closes #393
I've added a new error type for it to make failures explicit, but you could arguably also just use
as usize
and live with potentially weird behaviour when large values are truncated. Presumably, in those cases you'd crash anyway when trying to load the data into memory, though I haven't looked into it more.I've also silenced some warnings in a separate commit by hiding them behind a
cfg
tag because they annoyed me during development, but I'm happy to remove those changes if you prefer.