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

Why does BLE use &dyn? #37

Closed
Frostie314159 opened this issue Feb 14, 2024 · 1 comment
Closed

Why does BLE use &dyn? #37

Frostie314159 opened this issue Feb 14, 2024 · 1 comment

Comments

@Frostie314159
Copy link

Frostie314159 commented Feb 14, 2024

This is more a question than an issue, but is there a specific reason, why bleps doesn't use generics instead of a dynamic reference to an HCIConnection on the BLE struct?
If this has a specific reason, please let me know.
The BLE struct is likely only instantiated once in the entire application and monomorphization will likely even reduce code size here.

@bjoernQ
Copy link
Owner

bjoernQ commented Feb 15, 2024

There is no particular reason for that. Feel free to file a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants