Skip to main content

dispatch_component

Macro dispatch_component 

Source
macro_rules! dispatch_component {
    ($target:expr, |$inner:ident| $action:expr) => { ... };
}
Expand description

Dispatches an operation across all variants of TemplateComponent. Requires $target to be a TemplateComponent and provides $inner to the closure/expression provided in $action.