Struct yew::app::App

source ·
pub struct App<CTX, COMP: Component<CTX>> { /* private fields */ }
Expand description

An application instance.

Implementations

Creates a new App with a component in a context.

Creates isolated App instance, but reuse the context.

Alias to mount("body", ...).

The main entrypoint of a yew program. It works similar as program function in Elm. You should provide an initial model, update function which will update the state of the model and a view function which will render the model to a virtual DOM tree.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.