macro_rules! enum_set_complement {
($value:path $(,)?) => { ... };
}
Expand description
Computes the complement of an enums or constants enumset at compile time.
ยงExamples
const SET: EnumSet<Enum> = enum_set!(Enum::B | Enum::C);
const CONST_SET: EnumSet<Enum> = enum_set_complement!(SET);
assert_eq!(CONST_SET, Enum::A | Enum::D);