Struct svgdom::Attributes [] [src]

pub struct Attributes(_);

Wrapper around attributes list.

More low level API than in Node, but it supports getting a reference to the attribute, and not only copy like Node's API.

Use with care, since it didn't perform many check from Node's API.

Methods

impl Attributes
[src]

Constructs a new attribute.

Warning: newer construct it manually. All nodes has Attributes by default.

Returns a optional reference to Attribute.

Returns a optional mutable reference to Attribute.

Returns optional reference to AttributeValue.

Inserts new attribute. Previous will be overwritten.

Warning: this method did not perform any checks for linked attributes. If you want to insert an linked attribute - use Node::set_link_attribute().

Removes an existing attribute.

Warning: this method did not perform any checks for linked attributes. If you want to remove an linked attribute - use Node::remove_attribute().

Returns true if container contains an attribute such id.

Returns count of the attributes.

Returns true if attributes list is empty.

Returns an iterator.

Returns a mutable iterator.

Retains only the elements specified by the predicate.

Returns an existing attribute or def_value.