Struct svgdom::Color [] [src]

pub struct Color {
    pub red: u8,
    pub green: u8,
    pub blue: u8,
}

Representation of the <color> type.

Fields

Methods

impl Color
[src]

[src]

Constructs a new color.

Trait Implementations

impl From<Color> for AttributeValue
[src]

[src]

Performs the conversion.

impl Clone for Color
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Color
[src]

impl PartialEq for Color
[src]

[src]

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

[src]

This method tests for !=.

impl Debug for Color
[src]

[src]

Formats the value using the given formatter. Read more

impl FromStr for Color
[src]

The associated error which can be returned from parsing.

[src]

Parses a string s to return a value of this type. Read more

impl ParseFromSpan for Color
[src]

[src]

Parses data from a StrSpan.

impl WriteBuffer for Color
[src]

[src]

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

[src]

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

impl Display for Color
[src]

[src]

Formats the value using the given formatter. Read more

impl ToStringWithOptions for Color
[src]

[src]

Writes data to the String using specified WriteOptions.

Auto Trait Implementations

impl Send for Color

impl Sync for Color