Trait cosmic::iced::application::Title
source · pub trait Title<State> {
// Required method
fn title(&self, state: &State) -> String;
}
Expand description
The title logic of some Application
.
This trait is implemented both for &static str
and
any closure Fn(&State) -> String
.
This trait allows the application
builder to take any of them.
Required Methods§
sourcefn title(&self, state: &State) -> String
fn title(&self, state: &State) -> String
Produces the title of the Application
.