Extract combinator if this is a Combinator variant.
(&self)
| 240 | impl<'a> QuerySelectorComponent<'a> { |
| 241 | /// Extract combinator if this is a Combinator variant. |
| 242 | pub fn as_combinator(&self) -> Option<QueryCombinator> { |
| 243 | match self { |
| 244 | Self::Combinator(c) => Some(*c), |
| 245 | _ => None, |
| 246 | } |
| 247 | } |
| 248 | } |
| 249 | |
| 250 | impl<'a> Parse<'a> for QuerySelectorComponent<'a> { |