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

Enumeration of all variants of MavMessage as list of Values (u32 or &str) #291

Open
federico123579 opened this issue Nov 16, 2024 · 0 comments

Comments

@federico123579
Copy link

Currently mavlink-bindgen applied to a dialect generates the struct MavMessage with all variants available, though listing all these variants and collect them as a Vec<&'static str> or Vec<u32> seems still not possible. I need a way to iterate through all variants without using a match (in my case a GUI should offer a list of message names to choose from). Even a simple #derive(EnumIter) from Strum would be enough for me.

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

1 participant