[][src]Struct yew::app::App

pub struct App<COMP: Component> { /* fields omitted */ }

An application instance.

Methods

impl<COMP> App<COMP> where
    COMP: Component + Renderable<COMP>, 
[src]

pub fn new() -> Self[src]

Creates a new App with a component in a context.

pub fn mount_to_body(self) -> Scope<COMP>[src]

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

pub fn mount(self, element: Element) -> Scope<COMP>[src]

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

impl<COMP> !Send for App<COMP>

impl<COMP> !Sync for App<COMP>

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: Any
[src]