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
- AVec
ofGenericNode
s that are to be removed.marker
- Ifmarker
isNone
, all the nodes fromparent
are removed regardless ofcurrent
. This behavior will likely change in the future.replacement
- An optional replacement node for the removed nodes.