Trait auk::WithChildren
source · pub trait WithChildren {
// Required method
fn children_mut(&mut self) -> &mut Vec<Element>;
// Provided methods
fn child(self, child: impl Into<Element>) -> Self
where Self: Sized { ... }
fn children(
self,
children: impl IntoIterator<Item = impl Into<Element>>
) -> Self
where Self: Sized { ... }
}
Expand description
A trait for elements that can have children.
Required Methods§
sourcefn children_mut(&mut self) -> &mut Vec<Element>
fn children_mut(&mut self) -> &mut Vec<Element>
Returns a mutable reference to this element’s children.