Struct svgdom::Attributes [] [src]

pub struct Attributes(_);

An attributes list.

Methods

impl Attributes
[src]

[src]

Constructs a new attribute.

Warning: this method is for private use only. Never invoke it directly.

[src]

Returns an optional reference to Attribute.

[src]

Returns an optional mutable reference to Attribute.

[src]

Returns an optional reference to AttributeValue.

[src]

Returns an optional mutable reference to AttributeValue.

[src]

Inserts a new attribute. Previous will be overwritten.

Panics

During insert of a linked attribute. Use Node::set_attribute() instead.

Will panic only in debug build.

[src]

Creates a new attribute from name and value and inserts it. Previous will be overwritten.

Node attribute value can be set only via Node::set_attribute() method.

[src]

Inserts a new link attribute.

Warning: this method is for private use only. Never invoke it directly.

[src]

Removes an existing attribute.

Panics

During remove of a linked attribute. Use Node::remove_attribute() instead.

Will panic only in debug build.

[src]

Removes an existing attribute.

Warning: this method is for private use only. Never invoke it directly.

[src]

Returns true if the container contains an attribute with such id.

[src]

Returns count of the attributes.

[src]

Returns true if attributes is empty.

[src]

Returns an iterator.

[src]

Returns a mutable iterator.

[src]

Returns an iterator over SVG attributes.

Shorthand for: iter().filter(|a| a.is_svg()).map(|a| (a.id().unwrap(), a))

[src]

Returns a mutable iterator over SVG attributes.

Shorthand for: iter_mut().filter(|a| a.is_svg()).map(|a| (a.id().unwrap(), a))

[src]

Retains only elements specified by the predicate.

Panics

During remove of a linked attribute. Use Node::remove_attribute() instead.

Will panic only in debug build.

Trait Implementations

impl Debug for Attributes
[src]

[src]

Formats the value using the given formatter.