Skip to main content

boxed_event_handler

Function boxed_event_handler 

Source
pub fn boxed_event_handler<E, Args, T: 'static>(
    f: impl EventHandler<E, Args, T>,
) -> BoxedEventAction<E, T>
where E: 'static,
Expand description

Erases an EventHandler into a BoxedEventAction so a component config can store the callback as a typed field without leaking the extractor-tuple generics.