MCPcopy Create free account
hub / github.com/csskit/csskit / as_combinator

Method as_combinator

crates/csskit_ast/src/selector/query.rs:242–247  ·  view source on GitHub ↗

Extract combinator if this is a Combinator variant.

(&self)

Source from the content-addressed store, hash-verified

240impl<'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
250impl<'a> Parse<'a> for QuerySelectorComponent<'a> {

Callers 1

parseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected