Enum css_parser::CSSValue [−][src]
pub enum CSSValue {
Keyword(String),
Function(String, Vec<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
StringLiteral(String)
Tuple Fields of StringLiteral
0: String
NumberWithUnit(Number, String)
Tuple Fields of NumberWithUnit
0: Number
1: String
Color(String)
Tuple Fields of Color
0: String
Trait Implementations
fn to_string_from_buffer(
&self,
buf: &mut impl ToString,
settings: &ToStringSettings,
depth: u8
)
fn to_string_from_buffer(
&self,
buf: &mut impl ToString,
settings: &ToStringSettings,
depth: u8
)
Depth indicates the indentation of current block
Returns position of node as span as it was parsed. May be invalid or none after mutation
fn from_string(
string: String,
source_id: SourceId,
offset: Option<usize>
) -> Result<Self, ParseError>
fn from_string(
string: String,
source_id: SourceId,
offset: Option<usize>
) -> Result<Self, ParseError>
Parses structure from string
Returns structure as valid string. If SourceMap
passed will add mappings to SourceMap