flagset
flagset copied to clipboard
Rust data types and a macro for generating enumeration-based bit flags
Hello, I'm a Rust newbie so apologies if this is more a language question than one for your crate, but am I missing an ergonomic way of taking a vec/iterable/arr/slice...
right now, `flagset::InvalidBits`, the type returned within the `Err` variant when creating a new `flagset::FlagSet`, doesn't implement `std::error::Error`. not only is this unorthodox for error types, but it also makes...
Obviously, from a pure-Rust standpoint, I think it makes sense to stay in the typecheck-guaranteed land of `FlagSet`: just think in terms of "a set of flags", and "it's a...
Hey, sweet crate by the way! Soooo glad I don't have to reinvent the wheel on this one. Unless I'm missing something, a few statements on the `flagset::flags` doc page...
We'd like commits to be signed off via `git signoff`, and we should test whether any signoff exists for commits on incoming PRs.
Enarx projects should not contain merge commits, and we'd like to test incoming pull requests to ensure they do not contain any. The best way to go about this is...
The following code is ideal but can not be compiled. ```rust use flagset::{FlagSet, flags}; mod core {} flags! { enum Flags: u8 { Foo, Bar, Baz, } } struct Container(FlagSet);...
### Is there an existing issue for this? - [X] I have searched the existing issues ### Description Add a `FlagSet::empty() -> Self` method that returns an empty set. This...