Enum css_parser::CSSToken[][src]

pub enum CSSToken {
Show 17 variants Ident(String), Comment(String), HashPrefixedValue(String), Number(String), String(String), OpenCurly, CloseCurly, OpenBracket, CloseBracket, Colon, SemiColon, Dot, CloseAngle, Comma, Asterisk, Percentage, EOS,
}

Variants

Ident(String)

Tuple Fields of Ident

0: String
Comment(String)

Tuple Fields of Comment

0: String
HashPrefixedValue(String)

HashPrefixedValue. Is a separate member to prevent lexing #0f5421 as a number. e.g #my-idx, #ffffff

Tuple Fields of HashPrefixedValue

0: String
Number(String)

e.g 42

Tuple Fields of Number

0: String
String(String)

e.g “SF Pro Display”

Tuple Fields of String

0: String
OpenCurly
CloseCurly
OpenBracket
CloseBracket
Colon
SemiColon
Dot
CloseAngle
Comma
Asterisk
Percentage
EOS

END of source

Trait Implementations

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.