without

Macro without 

Source
macro_rules! without {
    ($cap:ty) => { ... };
    ($set:ty, $cap:ty) => { ... };
    ($set:ty, $cap:ty, $($rest:ty),+) => { ... };
}
Expand description

Macro to remove a capability from a set Usage:

  • without![Set, Cap] -> Remove Cap from Set
  • without![Set, A, B] -> Remove A then B
  • without![Cap] -> Remove Cap from implicit __C