pub struct Stateful<S, F> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<S, F, V> View for Stateful<S, F>where
S: IntoState,
F: Fn(*const Hook<S::State>) -> V + 'static,
V: View,
impl<S, F, V> View for Stateful<S, F>where S: IntoState, F: Fn(*const Hook<S::State>) -> V + 'static, V: View,
§type Product = StatefulProduct<<S as IntoState>::State>
type Product = StatefulProduct<<S as IntoState>::State>
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<S, F> RefUnwindSafe for Stateful<S, F>where F: RefUnwindSafe, S: RefUnwindSafe,
impl<S, F> Send for Stateful<S, F>where F: Send, S: Send,
impl<S, F> Sync for Stateful<S, F>where F: Sync, S: Sync,
impl<S, F> Unpin for Stateful<S, F>where F: Unpin, S: Unpin,
impl<S, F> UnwindSafe for Stateful<S, F>where F: UnwindSafe, S: 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