Enum svgdom::AttributeValue[][src]

pub enum AttributeValue {
    None,
    Inherit,
    CurrentColor,
    AspectRatio(AspectRatio),
    Color(Color),
    FuncLink(Node),
    Paint(NodeOption<PaintFallback>),
    Length(Length),
    LengthList(LengthList),
    Link(Node),
    Number(f64),
    NumberList(NumberList),
    Path(Path),
    Points(Points),
    Transform(Transform),
    ViewBox(ViewBox),
    String(String),
}

Value of the SVG attribute.

Variants

FuncIRI

IRI

Methods

impl AttributeValue
[src]

Checks that the current attribute value contains a Node.

E.g. Link, FuncLink and Paint.

Constructs a new attribute value with a 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. Read more

impl From<AspectRatio> for AttributeValue
[src]

Performs the conversion.

impl From<Color> for AttributeValue
[src]

Performs the conversion.

impl From<Length> for AttributeValue
[src]

Performs the conversion.

impl From<LengthList> 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<Path> for AttributeValue
[src]

Performs the conversion.

impl From<Points> for AttributeValue
[src]

Performs the conversion.

impl From<String> for AttributeValue
[src]

Performs the conversion.

impl From<Transform> for AttributeValue
[src]

Performs the conversion.

impl From<ViewBox> for AttributeValue
[src]

Performs the conversion.

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

Performs the conversion.

impl From<i32> 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<PaintFallback> for AttributeValue
[src]

Performs the conversion.

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

Formats the value using the given formatter. Read more

Auto Trait Implementations