Skip to main content

ElementChild

Trait ElementChild 

Source
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§

Source

type Output

The type of the element, with the child added.

Required Methods§

Source

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

Adds a child to an element.

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.
Source§

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