pub trait View<'a, State, Message, Theme, Renderer> {
// Required method
fn view(&self, state: &'a State) -> Element<'a, Message, Theme, Renderer>;
}
Expand description
The view logic of some Application
.
This trait allows the application
builder to take any closure that
returns any Into<Element<'_, Message>>
.
Required Methods§
Sourcefn view(&self, state: &'a State) -> Element<'a, Message, Theme, Renderer>
fn view(&self, state: &'a State) -> Element<'a, Message, Theme, Renderer>
Produces the widget of the Application
.