[][src]Trait spair::Component

pub trait Component: 'static + Sized {
    type Routes: Routes<Self>;
    fn render<'a>(&self, context: Context<'a, Self>);

    fn with_comp(_: Comp<Self>) -> Option<Self> { ... }
fn initialize(_: &Comp<Self>) { ... }
fn default_checklist() -> Checklist<Self> { ... }
fn default_should_render() -> ShouldRender { ... } }

Associated Types

type Routes: Routes<Self>

Loading content...

Required methods

fn render<'a>(&self, context: Context<'a, Self>)

Loading content...

Provided methods

fn with_comp(_: Comp<Self>) -> Option<Self>

fn initialize(_: &Comp<Self>)

fn default_checklist() -> Checklist<Self>

fn default_should_render() -> ShouldRender

Loading content...

Implementors

Loading content...