pub trait AppMain { // Required method fn handle_event(&mut self, cx: &mut Cx, event: &Event); // Provided method fn ui_runner(&self) -> UiRunner<Self> where Self: Sized + 'static { ... } }