Struct ego_tree::NodeMut [] [src]

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

Node mutator.

Methods

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

[src]

Returns the value of this node.

[src]

Returns the tree containing this node.

[src]

Returns the ID of this node.

[src]

Returns the parent of this node.

[src]

Returns the previous sibling of this node.

[src]

Returns the next sibling of this node.

[src]

Returns the first child of this node.

[src]

Returns the last child of this node.

[src]

Returns true if this node has siblings.

[src]

Returns true if this node has children.

[src]

Appends a new child to this node.

[src]

Prepends a new child to this node.

[src]

Inserts a new sibling before this node.

Panics

Panics if this node is an orphan.

[src]

Inserts a new sibling after this node.

Panics

Panics if this node is an orphan.

[src]

Detaches this node from its parent.

[src]

Appends a child to this node.

[src]

Prepends a child to this node.

[src]

Inserts a sibling before this node.

Panics

Panics if this node is an orphan.

[src]

Inserts a sibling after this node.

Panics

Panics if this node is an orphan.

[src]

Reparents the children of a node, appending them to this node.

[src]

Reparents the children of a node, prepending them to this node.

Trait Implementations

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

[src]

Formats the value using the given formatter. Read more

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

[src]

Performs the conversion.

Auto Trait Implementations

impl<'a, T> Send for NodeMut<'a, T> where
    T: Send

impl<'a, T> Sync for NodeMut<'a, T> where
    T: Sync