Trait panoramix::elements::any_element::AnyVirtualDom[][src]

pub trait AnyVirtualDom<CpEvent, CpState>: Any + Debug {
    fn as_any(&self) -> &dyn Any;
fn init_tree(&self) -> WidgetSeqBox;
fn reconcile(
        &self,
        other: &Box<dyn AnyVirtualDom<CpEvent, CpState>>,
        widget_seq: &mut WidgetSeqBox,
        ctx: &mut ReconcileCtx<'_, '_, '_, '_, '_>
    );
fn process_event(
        &self,
        component_state: &mut CpState,
        children_state: &mut Option<AnyStateBox>,
        widget_seq: &mut WidgetSeqBox,
        cx: &mut GlobalEventCx<'_>
    ) -> Option<CpEvent>; fn print_type(&self) { ... } }

Required methods

fn as_any(&self) -> &dyn Any[src]

fn init_tree(&self) -> WidgetSeqBox[src]

fn reconcile(
    &self,
    other: &Box<dyn AnyVirtualDom<CpEvent, CpState>>,
    widget_seq: &mut WidgetSeqBox,
    ctx: &mut ReconcileCtx<'_, '_, '_, '_, '_>
)
[src]

fn process_event(
    &self,
    component_state: &mut CpState,
    children_state: &mut Option<AnyStateBox>,
    widget_seq: &mut WidgetSeqBox,
    cx: &mut GlobalEventCx<'_>
) -> Option<CpEvent>
[src]

Loading content...

Provided methods

fn print_type(&self)[src]

Loading content...

Implementors

impl<Child: VirtualDom<CpEvent, CpState> + 'static, CpEvent: 'static, CpState: 'static> AnyVirtualDom<CpEvent, CpState> for ErasedVirtualDom<Child, CpEvent, CpState>[src]

Loading content...