insert_before


Description:

public unowned Node<G> insert_before (Node<G> sibling, owned Node<G> node)

Inserts a Node beneath the parent before the given sibling.

Parameters:

this

the Node to place node under

sibling

the sibling Node to place node before. If sibling is null, the node is inserted as the last child of this.

node

the Node to insert

Returns:

the inserted Node