macro_rules! impl_capability_set {
($name:ty, $set_trait:ident > $subset_check:ident, ($($t:ty),+ $(,)?)) => { ... };
}Expand description
Implements list of capabilities for given type
ⓘ
pub struct CapMy;
bevy_immediate::impl_capability_set!(CapMy, ImplCapMy > ImplChildSet, (Cap1, Cap2, Cap3));Defines trait ImplCapMy that can be used to easily check that CapSet has
at least all capabilities in CapMy.
Additionally at compile time checks that ImplChildSet is subset of CapMy capabilities.
See examples for correct use!