Trait UseRender

Source
pub trait UseRender {
    type RenderArg: Props;
    type RenderOutput;

    // Required method
    fn use_render(&self, props: &Self::RenderArg) -> Self::RenderOutput;
}

Required Associated Types§

Source

type RenderArg: Props

Source

type RenderOutput

This allows implementor type to specify a custom type as the return type of the methods.

With this associated type param, some special components can return special elements with special traits. For example, table component returns

Required Methods§

Source

fn use_render(&self, props: &Self::RenderArg) -> Self::RenderOutput

Implementors§