Expand description
High-level types and functions related to CSS parsing
Re-exports§
pub use crate::props::property::CssParsingError;
Structs§
- CssParse
Error - Error that can happen during the parsing of a CSS value
- CssParse
Error Owned - Owned version of CssParseError, without references.
- CssParse
Warn Msg - CssParse
Warn MsgOwned - Owned version of CssParseWarnMsg, where warning is the owned type.
- Error
Location - Unparsed
CssRule Block - Unparsed
CssRule Block Owned - Owned version of UnparsedCssRuleBlock, with BTreeMap of Strings.
Enums§
- CssParse
Error Inner - CssParse
Error Inner Owned - CssParse
Warn MsgInner - CssParse
Warn MsgInner Owned - CssPath
Parse Error - CssPath
Parse Error Owned - CssPseudo
Selector Parse Error - CssPseudo
Selector Parse Error Owned - CssSyntax
Error - List of all supported errors.
- Dynamic
CssParse Error - Error that can happen during
css_parser::parse_key_value_pair - Dynamic
CssParse Error Owned
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”.