Struct tui_realm_treeview::Tree[][src]

pub struct Tree { /* fields omitted */ }
Expand description

Tree

represent the tree data structure inside the component

Implementations

new

Instantiates a new Tree

root

Returns a reference to the root node

root_mut

Returns a mutablen reference to the root node

query

Query tree for a certain node

query_mut

Query tree for a certain node and return it as a mutable reference

parent

Get parent node of id

siblings

Get siblings for provided node

node_by_route

Get starting from root the node associated to the indexes. When starting from tree, the first element in route must be 0

route_by_node

Calculate the route of a node by its id

Trait Implementations

Formats the value using the given formatter. Read more

PropPayload to TuiTree

The PropPayload is a series of Linked where item is a Tuple made up of (id, label, parent) and next element is the following element in root

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

Performs the conversion.

Performs the conversion.

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.