pub trait ElementChild<NewChild>where
NewChild: IntoRender,{
type Output;
// Required method
fn child(self, child: NewChild) -> Self::Output;
}Expand description
Adds a child to the element.
Required Associated Types§
Required Methods§
Implementors§
Source§impl<E, At, Ch, NewChild> ElementChild<NewChild> for HtmlElement<E, At, Ch>where
E: ElementWithChildren,
Ch: RenderHtml + NextTuple,
<Ch as NextTuple>::Output<<NewChild as IntoRender>::Output>: Render,
NewChild: IntoRender,
<NewChild as IntoRender>::Output: RenderHtml,
Available on non-erase_components only.
impl<E, At, Ch, NewChild> ElementChild<NewChild> for HtmlElement<E, At, Ch>where
E: ElementWithChildren,
Ch: RenderHtml + NextTuple,
<Ch as NextTuple>::Output<<NewChild as IntoRender>::Output>: Render,
NewChild: IntoRender,
<NewChild as IntoRender>::Output: RenderHtml,
Available on non-
erase_components only.