Skip to main content

ComponentConstructor

Trait ComponentConstructor 

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

Required Methods§

Source

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

Implementors§

Source§

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

Source§

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