Module rsvg::node

source ·
Expand description

Tree nodes, the representation of SVG elements.

Librsvg uses the rctree crate to represent the SVG tree of elements. Its rctree::Node struct provides a generic wrapper over nodes in a tree. Librsvg puts a NodeData as the type parameter of rctree::Node. For convenience, librsvg has a type alias Node = rctree::Node<NodeData>.

Nodes are not constructed directly by callers;

Structs§

Enums§

Traits§

  • Helper trait to get different NodeData variants
  • Helper trait for cascading recursively
  • Helper trait for drawing recursively.

Type Aliases§

  • Strong reference to an element in the SVG tree.
  • Weak reference to an element in the SVG tree.