Struct usvg::Tree [] [src]

pub struct Tree { /* fields omitted */ }

A nodes tree container.

Methods

impl Tree
[src]

[src]

Parsers Tree from the SVG data.

Can contain SVG string or gzip compressed data.

[src]

Parsers Tree from the SVG string.

An empty Tree will be returned on any error.

[src]

Parsers Tree from the svgdom::Document.

An empty Tree will be returned on any error.

[src]

Parsers Tree from the file.

[src]

Creates a new Tree.

[src]

Returns the Svg node.

[src]

Returns the Svg node value.

[src]

Returns the Defs node.

[src]

Checks that node is part of the Defs children.

[src]

Appends NodeKind to the Defs node.

[src]

Returns defs child node by ID.

[src]

Returns renderable node by ID.

If an empty ID is provided, than this method will always return None. Even if tree has nodes with empty ID.

[src]

Converts the document to svgdom::Document.

Used to save document to file for debug purposes.

Trait Implementations

Auto Trait Implementations

impl !Send for Tree

impl !Sync for Tree