logo
pub struct ComponentItemTree<'a> { /* private fields */ }
Expand description

The ComponentItemTree provides tree walking code for the physical ItemTree stored in a Component without stitching any inter-Component links together!

Implementations

Create a new ItemTree from its raw data.

Get a ItemTreeNode

Get the parent of a node, returns None if this is the root node of this item tree.

Returns the next sibling or None if this is the last sibling.

Returns the previous sibling or None if this is the first sibling.

Returns the first child or None if this are no children or the index points to a DynamicTree.

Returns the last child or None if this are no children or the index points to an DynamicTree.

Returns the number of nodes in the ComponentItemTree

Trait Implementations

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.