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