appropriate rust data structure for where C would use a bit field: a struct with bool fields? a bunch of u8 consts in a HashSet? a HashSet of some enum? a bit field? something else?
-
-
it's surprising to me that a systems language doesn't have a good baked-in idiom for a set of flags?
-
I mean, a struct with bools is fine for most folks. Needing 1 bit representation is a more niche case
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.