Skip to main content

EntityReference

Type Alias EntityReference 

Source
pub type EntityReference = Node<EntityReferenceSpec>;
Expand description

Entity reference node.

Aliased Type§

pub struct EntityReference { /* private fields */ }

Implementations§

Source§

impl EntityReference

Source

pub fn name(&self) -> Rc<str>

Entity name.

Source

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.

Source

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.

Trait Implementations§

Source§

impl Display for EntityReference

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more