Enum cssparser::Color [] [src]

pub enum Color {
    CurrentColor,
    RGBA(RGBA),
}

A value.

Variants

The 'currentcolor' keyword

Everything else gets converted to RGBA during parsing

Methods

impl Color
[src]

Parse a value, per CSS Color Module Level 3.

FIXME(#2) Deprecated CSS2 System Colors are not supported yet.

Parse a color hash, without the leading '#' character.

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

Serialize self in CSS syntax, writing to dest.

Serialize self in CSS syntax and return a string. Read more

Serialize self in CSS syntax and return a result compatible with std::fmt::Show. Read more