I've started mocking up what I think the interface for the I2C_RDWR should look like, and I'm too green to be confident this is a good plan. While this compiles alright, Traits are also one of those things I'm not overly comfortable with.
The two things I think I want to change are:
The 'flags' u16 parameter on the 'custom' function should be a trait as well
Should there be some sort of factory class? Maybe that can be left up to the implementer?
I've started mocking up what I think the interface for the I2C_RDWR should look like, and I'm too green to be confident this is a good plan. While this compiles alright, Traits are also one of those things I'm not overly comfortable with.
The two things I think I want to change are: