Trait ComponentConstructor

pub trait ComponentConstructor<P, T> {
    // Required method
    fn construct(self, props: P) -> T;
}

Required Methods§

fn construct(self, props: P) -> T

Implementors§

§

impl<Func, T> ComponentConstructor<(), T> for Func
where Func: FnOnce() -> T,

§

impl<Func, T, P> ComponentConstructor<P, T> for Func
where Func: FnOnce(P) -> T, P: PropsOrNoPropsBuilder,