macro_rules! impl_component_fallback_provider { ($type:ty => [$($component:ty),*]) => { ... }; }
Expand description
Implements the ComponentFallbackProvider
trait for a given type, using a number of TypedComponentFallbackProvider
.
Usage examples:
ⓘ
impl_component_fallback_provider!(MySystem => []); // Empty fallback provider
impl_component_fallback_provider!(MySystem => [Color, Text]); // Fallback provider handling the Color and Text components.