launch

Function launch 

Source
pub fn launch<V: IntoView + 'static>(app_view: impl FnOnce() -> V + 'static)
Expand description

Initializes and runs an application with a single window.

This function creates a new Application, sets up a window with the provided view, and starts the application event loop. The app_view closure is used to define the root view of the application window.

Example:

floem::launch(|| "Hello, World!")

To build an application and windows with more configuration, see Application.