Struct tui_realm_treeview::Node [−][src]
pub struct Node { /* fields omitted */ }
Expand description
Node
Describes a node inside the Tree
Implementations
new
Instantiates a new Node
ATTENTION: id mustn’t be empty nor duplicated
with_children
Sets Node children
with_child
Create a new child in this Node
truncate
Truncate tree at depth.
If depth is 0
, node’s children will be cleared
is_leaf
Returns whether this node is a leaf (which means it has no children)
query
Search for id
inside Node’s children (or is itself)
node_by_route
Given a vector of indexes, returns the node associated to the route
route_by_node
Calculate the route of a node by its id
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Node
impl UnwindSafe for Node