Skip to main content

Module parser2

Module parser2 

Source
Expand description

High-level types and functions related to CSS parsing

Re-exports§

pub use crate::props::property::CssParsingError;

Structs§

CssParseError
Error that can happen during the parsing of a CSS value
CssParseErrorOwned
Owned version of CssParseError, without references.
CssParseWarnMsg
CssParseWarnMsgOwned
Owned version of CssParseWarnMsg, where warning is the owned type.
ErrorLocation
UnparsedCssRuleBlock
UnparsedCssRuleBlockOwned
Owned version of UnparsedCssRuleBlock, with BTreeMap of Strings.

Enums§

CssParseErrorInner
CssParseErrorInnerOwned
CssParseWarnMsgInner
CssParseWarnMsgInnerOwned
CssPathParseError
CssPathParseErrorOwned
CssPseudoSelectorParseError
CssPseudoSelectorParseErrorOwned
CssSyntaxError
List of all supported errors.
DynamicCssParseError
Error that can happen during css_parser::parse_key_value_pair
DynamicCssParseErrorOwned

Functions§

new_from_str
parse_css_declaration
parse_css_path
Parses a CSS path from a string (only the path,.no commas allowed)
pseudo_selector_from_str
“selector” contains the actual selector such as “nth-child” while “value” contains an optional value - for example “nth-child(3)” would be: selector: “nth-child”, value: “3”.