pub trait UseRender {
type RenderArg: Props;
type RenderOutput;
fn use_render(&self, props: &Self::RenderArg) -> Self::RenderOutput;
}
Associated Types
type RenderOutput
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