Skip to main content

ElementDecl

Type Alias ElementDecl 

Source
pub type ElementDecl = Node<ElementDeclSpec>;

Aliased Type§

pub struct ElementDecl { /* private fields */ }

Implementations§

Source§

impl ElementDecl

Source

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

Element name declared by this declaration.

Source

pub fn content_spec(&self) -> Ref<'_, ContentSpec>

ContentSpec of declaration target element.

Source

pub fn deep_copy(&self) -> Self

Create new node and copy internal data to the new node.

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.

Trait Implementations§

Source§

impl Display for ElementDecl

Source§

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

Formats the value using the given formatter. Read more