pub trait View {
type Product: Mountable;
// Required methods
fn build(self, p: In<'_, Self::Product>) -> Out<'_, Self::Product>;
fn update(self, p: &mut Self::Product);
// Provided methods
fn on_mount<F>(self, handler: F) -> OnMount<Self, F>
where F: FnOnce(&<Self::Product as Mountable>::Js),
Self: Sized { ... }
fn on_render<F>(self, handler: F) -> OnRender<Self, F>
where F: FnOnce(&<Self::Product as Mountable>::Js),
Self: Sized { ... }
}
Expand description
Trait that describes types that can be rendered in the DOM.