Struct svgdom::Attribute[][src]

pub struct Attribute {
    pub name: AttributeQName,
    pub value: AttributeValue,
}

Representation of the SVG attribute object.

Fields

Attribute name.

Attribute value.

Methods

impl Attribute
[src]

Constructs a new attribute.

Constructs a new attribute with a default value, if it known.

Returns an SVG attribute ID.

Returns true if the attribute has the selected ID.

Returns true if the attribute is an SVG attribute.

Trait Implementations

impl Clone for Attribute
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Attribute
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for Attribute
[src]

Formats the value using the given formatter. Read more

impl WriteBuffer for Attribute
[src]

Writes data to the Vec<u8> buffer using specified WriteOptions.

Writes data to the Vec<u8> buffer using default WriteOptions.

Returns an object that implements fmt::Display using provided write options.

impl Display for Attribute
[src]

Formats the value using the given formatter. Read more

impl<'a, N, V> From<(N, V)> for Attribute where
    AttributeQNameRef<'a>: From<N>,
    AttributeValue: From<V>, 
[src]

Performs the conversion.

impl<'a, N> From<(N, Node)> for Attribute where
    AttributeQNameRef<'a>: From<N>,
    N: Clone
[src]

Performs the conversion.

impl<'a, N> From<(N, (Node, Option<PaintFallback>))> for Attribute where
    AttributeQNameRef<'a>: From<N>,
    N: Clone
[src]

Performs the conversion.

impl AttributeType for Attribute
[src]

Returns true if the current attribute is part of presentation attributes. Read more

Returns true if the current attribute is part of inheritable presentation attributes. Read more

Returns true if the current attribute is part of animation event attributes. Read more

Returns true if the current attribute is part of graphical event attributes. Read more

Returns true if the current attribute is part of document event attributes. Read more

Returns true if the current attribute is part of conditional processing attributes . Read more

Returns true if the current attribute is part of core attributes. Read more

Returns true if the current attribute is part of fill attributes. Read more

Returns true if the current attribute is part of stroke attributes. Read more

Auto Trait Implementations

impl !Send for Attribute

impl !Sync for Attribute