Type Definition svgdom::Node [] [src]

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]

[src]

Returns true if the current node is referenced. Read more

[src]

Returns true if the current node is a basic shape element. Read more

[src]

Returns true if the current node is a shape element. Read more

[src]

Returns true if the current node is a container element. Read more

[src]

Returns true if the current node is a text content element. Read more

[src]

Returns true if the current node is a text content child element. Read more

[src]

Returns true if the current node is a graphic element. Read more

[src]

Returns true if the current node is a gradient element. Read more

[src]

Returns true if the current node is a [paint server]. Read more