Type Definition svgdom::Node

source ·
pub type Node = Node<NodeData>;
Expand description

Representation of the SVG node.

This is the main block of the library.

It’s designed as classical DOM node. It has links to a parent node, first child, last child, previous sibling and next sibling. So DOM nodes manipulations are very fast.

Node consists of:

  • The NodeType, which indicates it’s type. It can’t be changed.
  • Optional TagName, used only by element nodes.
  • Unique ID of the Element node. Can be set to nodes with other types, but without any affect.
  • Attributes - list of Attributes.
  • List of linked nodes. Details.
  • Text data, which is used by non-element nodes. Empty by default.

Trait Implementations

Returns true if the current node is referenced. Read more
Returns true if the current node is a basic shape element. Read more
Returns true if the current node is a shape element. Read more
Returns true if the current node is a container element. Read more
Returns true if the current node is a text content element. Read more
Returns true if the current node is a text content child element. Read more
Returns true if the current node is a graphic element. Read more
Returns true if the current node is a gradient element. Read more
Returns true if the current node is a paint server. Read more
Returns true if the current node is a filter primitive. Read more