Struct ego_tree::NodeMut [] [src]

pub struct NodeMut<'a, T: 'a> { /* fields omitted */ }

A node mutator.

Methods

impl<'a, T: 'a> NodeMut<'a, T>
[src]

Returns the value of this node.

Returns the ID of this node.

Returns a mutator of this node's parent.

Returns a mutator of this node's previous sibling.

Returns a mutator of this node's next sibling.

Returns a mutator of this node's first child.

Returns a mutator of this node's last child.

Returns true if this node has siblings.

Returns true if this node has children.

Appends a new node to this node's children, returning a mutator of the new node.

Prepends a new node to this node's children, returning a mutator of the new node.

Inserts a new sibling before this node, returning a mutator of the new node.

Panics

Panics if this node is an orphan.

Inserts a new sibling after this node, returning a mutator of the new node.

Panics

Panics if this node is an orphan.

Detaches this node from its parent.

If this node is an orphan, does nothing.

Appends a node to this node's children by ID, returning a mutator of the referenced node.

May cause cycles, which can cause unsafety in other operations.

Panics

Panics if id does not refer to a node in this tree.

Prepends a node to this node's children by ID, returning a mutator of the referenced node.

May cause cycles, which can cause unsafety in other operations.

Panics

Panics if id does not refer to a node in this tree.

Inserts a sibling before this node by ID, returning a mutator of the referenced node.

May cause cycles, which can cause unsafety in other operations.

Panics

Panics if id does not refer to a node in this tree.

Inserts a sibling after this node by ID, returning a mutator of the referenced node.

May cause cycles, which can cause unsafety in other operations.

Panics

Panics if id does not refer to a node in this tree.

Reparents the children of a node by ID, appending them to this node's children.

If the referenced node does not have children, does nothing.

May cause cycles, which can cause unsafety in other operations.

Panics

Panics if id does not refer to a node in this tree.

Reparents the children of a node by ID, prepending them to this node's children.

If the referenced node does not have children, does nothing.

May cause cycles, which can cause unsafety in other operations.

Panics

Panics if id does not refer to a node in this tree.

Trait Implementations

impl<'a, T: 'a> Into<NodeRef<'a, T>> for NodeMut<'a, T>
[src]

Performs the conversion.

impl<'a, T: Debug + 'a> Debug for NodeMut<'a, T>
[src]

Formats the value using the given formatter.