Function sycamore::utils::render::reconcile_fragments[][src]

pub fn reconcile_fragments<G: GenericNode>(parent: &G, a: &mut [G], b: &[G])
Expand description

Reconciles an array of nodes.

Params

  • parent - The parent node under which all other nodes are (direct) children.
  • a - The current/existing nodes that are to be diffed.
  • b - The new nodes that are to be inserted. After the reconciliation, all the nodes in b should be inserted under parent.

Panics

Panics if a.is_empty(). Append nodes instead.