-
Notifications
You must be signed in to change notification settings - Fork 41
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
Bitflag types are awkward to use. Should it use the bitflags
crate?
#791
Comments
Ah yeah, I don't know this alone particularly warrants a release, but I don't know how much it benefits other consumers of the library. |
In terms of rust-windowing/winit#2614, it would make checking certain bitflags significantly easier. |
Also related: #904 |
If I bump the
x11rb
dependency insmithay
to 0.11, there are errors like this:Having both types be
ConfigWindow
seems like an improvement, but it seems likeConfigWindow
doesn't implementBitAnd
or have acontains()
method, and the only way to fix this code is to convert both sides tou16
? Unless there's something I'm missing here.Would it be better to make use of the widely-used
bitflags
crate to define types like this? Then it would have all the methods I'm used to seeing in Rust bitflag types.The text was updated successfully, but these errors were encountered: