pub fn pseudo_selector_from_str<'a>(
selector: &'a str,
value: Option<&'a str>,
) -> Result<CssPathPseudoSelector, CssPseudoSelectorParseError<'a>>Expand description
“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”.