pub type EntityReference = Node<EntityReferenceSpec>;Expand description
Entity reference node.
Aliased Type§
pub struct EntityReference { /* private fields */ }Implementations§
Source§impl EntityReference
impl EntityReference
Sourcepub fn deep_copy(&self) -> Self
pub fn deep_copy(&self) -> Self
Create new node and copy internal data to the new node other than pointers to neighbor nodes.
While Clone::clone merely copies the pointer, this method copies the internal data
to new memory, creating a completely different node. Comparing the source node and
the new node using Node::is_same_node will always return false.
Sourcepub fn deep_copy_subtree(&self) -> Result<Self, XMLTreeError>
pub fn deep_copy_subtree(&self) -> Result<Self, XMLTreeError>
Perform a deep copy on all descendant nodes and construct a tree with the same structure.
The link to the parent is not preserved.