Macro enumset::enum_set_type
source · macro_rules! enum_set_type {
($(#[$enum_attr:meta])* $vis:vis enum $enum_name:ident {
$($(#[$attr:meta])* $variant:ident),* $(,)*
} $($rest:tt)*) => { ... };
() => { ... };
}👎Deprecated since 0.3.13: Use `#[derive(EnumSetType)] instead.
Expand description
Defines enums which can be used with EnumSet.
Copy, Clone, PartialOrd, Ord, PartialEq, Eq, Hash, Debug,
Sub, BitAnd, BitOr, BitXor, and Not are automatically derived for the enum.
These impls, in general, behave as if the enum variant was an EnumSet with a single value,
as those created by EnumSet::only.