Skip to content

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

@federico123579

Description

@federico123579

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions