[][src]Type Definition svgdom::Node

type Node = Node<NodeData>;

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

impl ElementType for Node[src]