pub trait ViewBuilder: 'static {
type Output: View;
// Required method
fn build(&self) -> Self::Output;
}Expand description
A trait for types that can repeatedly construct views.
This is a convenience trait that provides similar functionality to Fn() -> impl View,
allowing types to be used as view factories.