Struct percy_preview::Rerender
source · [−]pub struct Rerender { /* private fields */ }
Expand description
Allows the preview to trigger a rerender of itself.
For example, a preview for a component with a button that increments a counter might trigger a rerender whenever the button is clicked.
Clone
Clones share the same render function.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Rerender
impl !Send for Rerender
impl !Sync for Rerender
impl Unpin for Rerender
impl UnwindSafe for Rerender
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more