pub struct OnRender<V, F> { /* private fields */ }
Trait Implementations§
source§impl<V, F> View for OnRender<V, F>where
V: View,
F: FnOnce(&<V::Product as Mountable>::Js),
impl<V, F> View for OnRender<V, F>where V: View, F: FnOnce(&<V::Product as Mountable>::Js),
§type Product = <V as View>::Product
type Product = <V as View>::Product
The product should contain a DOM reference to this View and
any data it needs to update itself.
source§fn build(self, p: In<'_, Self::Product>) -> Out<'_, Self::Product>
fn build(self, p: In<'_, Self::Product>) -> Out<'_, Self::Product>
Build a product that can be mounted in the DOM from this type.
source§fn update(self, p: &mut Self::Product)
fn update(self, p: &mut Self::Product)
Update the product and apply changes to the DOM if necessary.
Auto Trait Implementations§
impl<V, F> RefUnwindSafe for OnRender<V, F>where F: RefUnwindSafe, V: RefUnwindSafe,
impl<V, F> Send for OnRender<V, F>where F: Send, V: Send,
impl<V, F> Sync for OnRender<V, F>where F: Sync, V: Sync,
impl<V, F> Unpin for OnRender<V, F>where F: Unpin, V: Unpin,
impl<V, F> UnwindSafe for OnRender<V, F>where F: UnwindSafe, V: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more