pub fn clean_children<G>(
    parent: &G,
    current: Vec<G, Global>,
    _marker: Option<&G>,
    replacement: Option<&G>,
    multi: bool
)where
    G: GenericNode,
Expand description

Cleans the children specified by current from parent.

Params

  • parent - The parent node from which to clean the children.
  • current - A Vec of GenericNodes that are to be removed.
  • marker - If marker is None, all the nodes from parent are removed regardless of current. This behavior will likely change in the future.
  • replacement - An optional replacement node for the removed nodes.