Tree.createItem

Create an item in the tree and add it as the last child of parent. If parent is not given, it will be added as the root's last child, or it'll the be the root itself if the tree is empty.

struct Tree
@nogc nothrow
createItem
(,
in long idx = -1
)

Meta