Struct ego_tree::NodeMut

source ·
pub struct NodeMut<'a, T: 'a> { /* private fields */ }
Expand description

Node mutator.

Implementations

Returns the ID of this node.

Returns the tree owning this node.

Returns the value of this node.

Returns the parent of this node.

Returns the previous sibling of this node.

Returns the next sibling of this node.

Returns the first child of this node.

Returns the last child of this node.

Returns true if this node has siblings.

Returns true if this node has children.

Appends a new child to this node.

Prepends a new child to this node.

Inserts a new sibling before this node.

Panics

Panics if this node is an orphan.

Inserts a new sibling after this node.

Panics

Panics if this node is an orphan.

Detaches this node from its parent.

Appends a child to this node.

Panics

Panics if new_child_id is not valid.

Prepends a child to this node.

Panics

Panics if new_child_id is not valid.

Inserts a sibling before this node.

Panics
  • Panics if new_sibling_id is not valid.
  • Panics if this node is an orphan.

Inserts a sibling after this node.

Panics
  • Panics if new_sibling_id is not valid.
  • Panics if this node is an orphan.

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

Panics

Panics if from_id is not valid.

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

Panics

Panics if from_id is not valid.

Trait Implementations

Formats the value using the given formatter. Read more
Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.