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 Setwithout![Set, A, B]-> Remove A then Bwithout![Cap]-> Remove Cap from implicit__C