pub struct Custom {
pub title: String,
pub init: Box<&'static dyn Fn() -> CustomData>,
pub update: Box<&'static dyn Fn(&mut CustomData, CustomData, &mut Env<'_, Registry, RootModel>) -> bool>,
pub render: Box<&'static dyn Fn(&CustomData) -> Html<Registry, RootModel>>,
}
Expand description
User defined component slide
Fields
title: String
init: Box<&'static dyn Fn() -> CustomData>
update: Box<&'static dyn Fn(&mut CustomData, CustomData, &mut Env<'_, Registry, RootModel>) -> bool>
render: Box<&'static dyn Fn(&CustomData) -> Html<Registry, RootModel>>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Custom
impl !Send for Custom
impl !Sync for Custom
impl Unpin for Custom
impl !UnwindSafe for Custom
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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