pub trait Widget: 'static {
// Provided methods
fn build(&mut self, scope: &Scope) -> Result { ... }
fn mount(self, parent: &Scope) -> Result<Mounted>
where Self: Sized { ... }
fn show_in(self, parent: &Scope) -> Result
where Self: Sized { ... }
}Expand description
A widget is built once; dynamic props/control flow install owned bindings.
Provided Methods§
fn build(&mut self, scope: &Scope) -> Result
fn mount(self, parent: &Scope) -> Result<Mounted>where
Self: Sized,
fn show_in(self, parent: &Scope) -> Resultwhere
Self: Sized,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".