pub struct ETree { /* private fields */ }
Expand description

Element tree

etree.ETree stores a sequence of etree.ETreeNode.

Implementations

get whether index feature is enabled

set whether index feature is enabled (usable for function pos())

get XML version

set XML version

get XML encoding

set XML encoding

get XML standalone

set XML standalone

get position of root node

get position of parent node

get positions of children node

get positions of children node with specified name

get positions of descendant node

get position of previous sibling node

get position of next sibling node

get position by idx

get node by position

get mut node by position

clone a subtree rooted at the node of specified position

append sibling node before the node of specified position and return the position of sibling node

Warning: position which is larger than return value and obtained before this function all should be re-obtained

append sibling node after the node of specified position and return the position of sibling node

Warning: position which is larger than return value and obtained before this function all should be re-obtained

append child node below the node of specified position and return the position of child node

Warning: position which is larger than return value and obtained before this function all should be re-obtained

append sibling tree before the node of specified position and return the position of sibling tree

Warning: position which is larger than return value and obtained before this function all should be re-obtained

append sibling tree after the node of specified position and return the position of sibling tree

Warning: position which is larger than return value and obtained before this function all should be re-obtained

append child tree below the node of specified position and return the position of child tree

Warning: position which is larger than return value and obtained before this function all should be re-obtained

remove a subtree rooted at the node of specified position

Warning: position which is larger than specified value and obtained before this function all should be re-obtained

clear indent and return old indent

format nodes according to indent

find the first node that matches path from the root node

find the first node that matches path from specified node

find nodes that matches path from the root node

find nodes that matches path from specified node

find the last node that matches path from the root node

find the last node that matches path from specified node

find nodes in reverse order that matches path from the root node

find nodes in reverse order that matches path from specified node

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

transform root node into a tree

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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.