Trait iced::program::Title

source ·
pub trait Title<State> {
    // Required method
    fn title(&self, state: &State) -> String;
}
Expand description

The title logic of some Program.

This trait is implemented both for &static str and any closure Fn(&State) -> String.

This trait allows the program builder to take any of them.

Required Methods§

source

fn title(&self, state: &State) -> String

Produces the title of the Program.

Implementations on Foreign Types§

source§

impl<State> Title<State> for &'static str

source§

fn title(&self, _state: &State) -> String

Implementors§

source§

impl<T, State> Title<State> for T
where T: Fn(&State) -> String,