use iced::executor; use iced::{Application, Command, Element, Settings, Theme}; fn main() -> iced::Result { App::run(Settings::default()) } struct App; impl Application for App { type Executor = executor::Default; type Flags = (); type Message = (); type Theme = Theme; fn new(_flags: ()) -> (App, Command) { (App, Command::none()) } fn title(&self) -> String { String::from("A cool application") } fn update(&mut self, _message: Self::Message) -> Command { Command::none() } fn view(&self) -> Element { "Hello, world!".into() } }