pub fn replace_with_selection(&mut self, sel: &Selection) {
        for node in self.nodes() {
            for prev_sibling in sel.nodes() {
                node.append_prev_sibling(&prev_sibling.id);
            }
        }

        self.remove()
    }
/// Replaces each element in the set of matched element with
/// the nodes from the given selection.
///
/// This follows the same rules as `append`.
Replaces each element in the set of matched element with
the nodes from the given selection.

This follows the same rules as `append`.
Replaces each element in the set of matched element with the nodes from the given selection . This follows the same rules as ` append ` .
pub fn replace_with_selection(&mut self, sel: &Selection) {
        for node in self.nodes() {
            for prev_sibling in sel.nodes() {
                node.append_prev_sibling(&prev_sibling.id);
            }
        }
        self.remove()
    }
pub fn replace_with_selection ( & mut self , sel : & Selection ) { for node in self . nodes ( ) { for prev_sibling in sel . nodes ( ) { node . append_prev_sibling ( & prev_sibling . id ) ; } } self . remove ( ) }
Replaces each element in the set of matched element with
the nodes from the given selection.
Replaces each element in the set of matched element with the nodes from the given selection .
&mut self
sel
&Selection
&mut self
sel
&Selection