Type Alias AppCreator

Source
pub type AppCreator<'app> = Box<dyn FnOnce(&CreationContext<'_>) -> Result<Box<dyn App + 'app>, Box<dyn Error + Send + Sync>> + 'app>;
Expand description

This is how your app is created.

You can use the CreationContext to setup egui, restore state, setup OpenGL things, etc.

Aliased Typeยง

struct AppCreator<'app>(/* private fields */);