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 ofAttribute
s.- List of linked nodes. Details.
- Text data, which is used by non-element nodes. Empty by default.
Trait Implementations
impl ElementType for Node
[src]
impl ElementType for Node
fn is_referenced(&self) -> bool
[src]
fn is_referenced(&self) -> bool
Returns true if the current node is referenced. Read more
fn is_basic_shape(&self) -> bool
[src]
fn is_basic_shape(&self) -> bool
Returns true if the current node is a basic shape element. Read more
fn is_shape(&self) -> bool
[src]
fn is_shape(&self) -> bool
Returns true if the current node is a shape element. Read more
fn is_container(&self) -> bool
[src]
fn is_container(&self) -> bool
Returns true if the current node is a container element. Read more
fn is_text_content(&self) -> bool
[src]
fn is_text_content(&self) -> bool
Returns true if the current node is a text content element. Read more
fn is_text_content_child(&self) -> bool
[src]
fn is_text_content_child(&self) -> bool
Returns true if the current node is a text content child element. Read more
fn is_graphic(&self) -> bool
[src]
fn is_graphic(&self) -> bool
Returns true if the current node is a graphic element. Read more
fn is_gradient(&self) -> bool
[src]
fn is_gradient(&self) -> bool
Returns true if the current node is a gradient element. Read more
fn is_paint_server(&self) -> bool
[src]
fn is_paint_server(&self) -> bool
Returns true if the current node is a [paint server]. Read more