Skip to content

Add BitFlags trait implemented by every bit flags #154

@arturoc

Description

@arturoc

It would allow to use any bitflags as generic for example:

struct SomeStruct<F: BitFlags>{
....
}

impl<F: BitFlags> SomeStruct<F>{
    fn set_flags(&mut self, flags: F){
        ...
    }
}

it would also allow to document the crate without need for the example_generated module

I can send a PR implementing this if there's interest

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