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§

source

fn children_mut(&mut self) -> &mut Vec<Element>

Returns a mutable reference to this element’s children.

Provided Methods§

source

fn child(self, child: impl Into<Element>) -> Self
where Self: Sized,

Adds a new child element to this element.

source

fn children( self, children: impl IntoIterator<Item = impl Into<Element>> ) -> Self
where Self: Sized,

Adds the specified child elements to this element.

Implementors§