[−][src]Struct plaster::app::App
An application instance.
Methods
impl<COMP> App<COMP> where
COMP: Component + Renderable<COMP>,
[src]
COMP: Component + Renderable<COMP>,
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_to_selector(self, selector: &str) -> Scope<COMP>
[src]
Alias to mount()
that allows using a selector
pub fn mount_with_props(
self,
element: Element,
props: COMP::Properties
) -> Scope<COMP>
[src]
self,
element: Element,
props: COMP::Properties
) -> Scope<COMP>
Alias to mount()
that allows passing in initial props
pub fn mount(
self,
element: Element,
props: Option<COMP::Properties>
) -> Scope<COMP>
[src]
self,
element: Element,
props: Option<COMP::Properties>
) -> Scope<COMP>
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> Unpin for App<COMP>
impl<COMP> !Send for App<COMP>
impl<COMP> !Sync for App<COMP>
impl<COMP> !UnwindSafe for App<COMP>
impl<COMP> !RefUnwindSafe for App<COMP>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,