Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider implementing all methods directly on their respective types #67

Open
hannobraun opened this issue May 2, 2018 · 0 comments
Open

Comments

@hannobraun
Copy link
Member

Currently, functionality covered by embedded-hal is only implemented via the embedded-hal traits. This means anyone using those methods must import the traits.

It might be more convenient to implement all methods directly on the types, and offer the traits in addition. Then the trait methods would basically just proxy the inherent implementations. I'm not sure though if there are any complications here regarding name collisions between trait methods and inherent methods.

timokroeger added a commit to timokroeger/bxcan that referenced this issue Dec 14, 2020
Lot’s of duplication, not sure if that’s best practice.
Ref: lpc-rs/lpc8xx-hal#67
timokroeger added a commit to timokroeger/bxcan that referenced this issue Dec 14, 2020
Lots of duplication, not sure if that’s best practice.
Ref: lpc-rs/lpc8xx-hal#67
timokroeger added a commit to timokroeger/bxcan that referenced this issue Dec 14, 2020
Lots of duplication, not sure if that’s best practice.
Ref: lpc-rs/lpc8xx-hal#67
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant