enumflags2
enumflags2 copied to clipboard
Release 1.0 — the plan
The only thing I'd change about this library is the way const fn support is handled — once const fn traits get stabilized, I'll be able to remove a lot of workarounds.
This will obviously involve bumping the MSRV, so I'll also switch to the recently stabilized panic! in const contexts for static assertions — I don't think a MSRV bump is warranted just for error message quality.
Hi,how about this implemention? no new type(BitFlags in this repo) reqired.😂
I consider the type-level distinction between "a flag" and "a set of flags" to be a feature.
Moreover, your approach wastes space and is useless for any kind of interop or FFI.