macro_rules! create_bitflags {
($(#[$meta:meta])* $vis:vis $Name:ident, $TagType:ty, [$(($FlagName:ident, $TypeName:ident),)+]) => { ... };
}
Expand description
Convenience macro to work around the fact the [bitflags]
crate does not yet support iterating over the
individual flags. This macro essentially creates the [bitflags]
and puts the individual flags into an associated
constant pub const ALL_FLAGS: &'static []
.