pub trait ChildrenExt: Sized {
// Required method
fn get_children(&mut self) -> &mut Vec<Element>;
// Provided methods
fn children(self, children: impl IntoIterator<Item = Element>) -> Self { ... }
fn maybe_child<C>(self, child: Option<C>) -> Self
where C: IntoElement { ... }
fn child<C>(self, child: C) -> Self
where C: IntoElement { ... }
}Required Methods§
fn get_children(&mut self) -> &mut Vec<Element>
Provided Methods§
fn children(self, children: impl IntoIterator<Item = Element>) -> Self
fn maybe_child<C>(self, child: Option<C>) -> Selfwhere
C: IntoElement,
fn child<C>(self, child: C) -> Selfwhere
C: IntoElement,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.