Function sycamore::utils::render::clean_children [−][src]
pub fn clean_children<G: GenericNode>(
parent: &G,
current: Vec<G>,
_marker: Option<&G>,
replacement: Option<&G>,
multi: bool
)
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.