Expand description
Struct that contains a tree node.
Create new root node.
- Node struct or None if content parsing fails.
Create new node.
content
- Node content.
level
- Node level.
- Node struct or None if content parsing fails.
Set parent node position.
parent_position
- Parent node position.
Get parent node position.
Set parent’s children array position.
parents_children_pos
- Position of current node in parent’s children array.
Get parent’s children array position.
- Position of current node in parent’s children array.
Add new child.
node_content
- Node content.
node_index
- Node index.
Update child map.
node_content
- Current node content.
new_node_content
- New node content.
- An
Option
with the node index.
Get child index using node content.
node_content
- Current node content.
- An
Option
with the node index.
Get children array reference.
Formats the value using the given formatter. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.