Struct svgdom::types::Color [] [src]

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

Representation of <color> type.

Fields

Methods

impl Color
[src]

Constructs a new color.

Trait Implementations

impl Clone for Color
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Color
[src]

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

Formats the value using the given formatter.

impl FromStream for Color
[src]

Error type.

Parses data from Stream.

Parses data from &[u8].

impl WriteBuffer for Color
[src]

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

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

impl Display for Color
[src]

Formats the value using the given formatter.

impl WriteToString for Color
[src]

Writes data to String using specified WriteOptions.