Bitflags crate vs bitwise operations on const

I want to know the benefits of using bitflags crate over bitwise operations on normal const values.

The bitflags crate is a syntax sugar. Technically it does the exact same thing as bitwise operations written by hand, but with a nicer, more foolproof interface.

2 Likes

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.