Trait ElementChild

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§

type Output

The type of the element, with the child added.

Required Methods§

fn child(self, child: NewChild) -> Self::Output

Adds a child to an element.

Implementors§

§

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,

§

type Output = HtmlElement<E, At, <Ch as NextTuple>::Output<<NewChild as IntoRender>::Output>>