pub fn children(&self) -> Selection<'a> {
        let mut result = Vec::with_capacity(self.length());
        let mut set = HashSet::with_capacity(self.length());

        for node in self.nodes() {
            for child in node.children() {
                if !set.contains(&child.id) && child.is_element() {
                    set.insert(child.id);
                    result.push(child);
                }
            }
        }

        Self { nodes: result }
    }
/// Gets the child elements of each element in the selection.
/// It returns a new Selection object containing these elements.
Gets the child elements of each element in the selection.
It returns a new Selection object containing these elements.
Gets the child elements of each element in the selection . It returns a new Selection object containing these elements .
pub fn children(&self) -> Selection<'a> {
        let mut result = Vec::with_capacity(self.length());
        let mut set = HashSet::with_capacity(self.length());
        for node in self.nodes() {
            for child in node.children() {
                if !set.contains(&child.id) && child.is_element() {
                    set.insert(child.id);
                    result.push(child);
                }
            }
        }
        Self { nodes: result }
    }
pub fn children ( & self ) -> Selection < ' a > { let mut result = Vec :: with_capacity ( self . length ( ) ) ; let mut set = HashSet :: with_capacity ( self . length ( ) ) ; for node in self . nodes ( ) { for child in node . children ( ) { if ! set . contains ( & child . id ) && child . is_element ( ) { set . insert ( child . id ) ; result . push ( child ) ; } } } Self { nodes : result } }
Gets the child elements of each element in the selection.
Gets the child elements of each element in the selection .
&self
&self