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
type Output
The type of the element, with the child added.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
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,
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.