Enum svgdom::AttributeValue [] [src]

pub enum AttributeValue {
    Color(Color),
    Length(Length),
    LengthList(LengthList),
    Link(Node),
    FuncLink(Node),
    Number(f64),
    NumberList(NumberList),
    Path(Path),
    PredefValue(ValueId),
    String(String),
    Transform(Transform),
}

Value of SVG attribute.

Variants

IRI

FuncIRI

Methods

impl AttributeValue
[src]

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

Trait Implementations

impl Clone for AttributeValue
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for AttributeValue
[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 AttributeValue
[src]

Formats the value using the given formatter.

impl<'a> From<&'a str> for AttributeValue
[src]

Performs the conversion.

impl From<String> for AttributeValue
[src]

Performs the conversion.

impl From<i32> for AttributeValue
[src]

Performs the conversion.

impl From<f64> for AttributeValue
[src]

Performs the conversion.

impl From<NumberList> for AttributeValue
[src]

Performs the conversion.

impl From<Length> for AttributeValue
[src]

Performs the conversion.

impl From<(i32, LengthUnit)> for AttributeValue
[src]

Performs the conversion.

impl From<(f64, LengthUnit)> for AttributeValue
[src]

Performs the conversion.

impl From<LengthList> for AttributeValue
[src]

Performs the conversion.

impl From<Transform> for AttributeValue
[src]

Performs the conversion.

impl From<Path> for AttributeValue
[src]

Performs the conversion.

impl From<Color> for AttributeValue
[src]

Performs the conversion.

impl From<ValueId> for AttributeValue
[src]

Performs the conversion.

impl WriteBuffer for AttributeValue
[src]

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

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

impl Display for AttributeValue
[src]

Formats the value using the given formatter.

impl WriteToString for AttributeValue
[src]

Writes data to String using specified WriteOptions.