pub struct Checkbox { /* private fields */ }Expand description
An field
Trait Implementations§
Source§impl Component for Checkbox
impl Component for Checkbox
Source§type Properties = Props
type Properties = Props
Properties type of component implementation.
It sould be serializable because it’s sent to dynamicaly created
component (layed under
VComp) and must be restored for a component
with unknown type.Source§fn create(props: Self::Properties, _context: ComponentLink<Self>) -> Self
fn create(props: Self::Properties, _context: ComponentLink<Self>) -> Self
Initialization routine which could use a context.
Source§fn change(&mut self, props: Self::Properties) -> ShouldRender
fn change(&mut self, props: Self::Properties) -> ShouldRender
This method called when properties changes, and once when component created.
Source§fn update(&mut self, msg: Self::Message) -> ShouldRender
fn update(&mut self, msg: Self::Message) -> ShouldRender
Called everytime when a messages of
Msg type received. It also takes a
reference to a context.Auto Trait Implementations§
impl Freeze for Checkbox
impl !RefUnwindSafe for Checkbox
impl !Send for Checkbox
impl !Sync for Checkbox
impl Unpin for Checkbox
impl !UnwindSafe for Checkbox
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