Enum css_parser::CSSValue[][src]

pub enum CSSValue {
    Keyword(String),
    Function(StringVec<CSSValue>),
    StringLiteral(String),
    Number(Number),
    NumberWithUnit(Number, String),
    Percentage(Number),
    Color(String),
    List(Vec<CSSValue>),
    CommaSeparatedList(Vec<CSSValue>),
}

Variants

Keyword(String)

Tuple Fields of Keyword

0: String
Function(StringVec<CSSValue>)

Tuple Fields of Function

0: String1: Vec<CSSValue>
StringLiteral(String)

Tuple Fields of StringLiteral

0: String
Number(Number)

Tuple Fields of Number

0: Number
NumberWithUnit(Number, String)

Tuple Fields of NumberWithUnit

0: Number1: String
Percentage(Number)

Tuple Fields of Percentage

0: Number
Color(String)

Tuple Fields of Color

0: String
List(Vec<CSSValue>)

Tuple Fields of List

0: Vec<CSSValue>
CommaSeparatedList(Vec<CSSValue>)

Tuple Fields of CommaSeparatedList

0: Vec<CSSValue>

Trait Implementations

Depth indicates the indentation of current block

Returns position of node as span as it was parsed. May be invalid or none after mutation

Parses structure from string

Returns structure as valid string. If SourceMap passed will add mappings to SourceMap

Formats the value using the given formatter. Read more

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.