Open iostat opened 1 year ago
Hey, thanks for the suggestion. I really appreciate your input. My advice would be to implement i8
and u8
with the ()
context. If you're interested, I'd love it if you could submit a pull request with your proposed changes.
Currently, in the case of
u8
andi8
, onlyTryRead<Endian>
andTryWrite<Endian>
are implemented. In reality, endianness doesn't matter for single byte values, and you end up writing verbose code that seems to hint that there's some sort of different handling of the bytes.Perhaps the TryRead for u8 and i8 should really be
impl<'a, Ctx> TryRead<'a, Ctx>
? Or at the very least, also have aTryRead<()>/TryWrite<()>
likebool
(and conversely, maybebool
should be generic on context)?