MCPcopy Create free account
hub / github.com/Stranger6667/css-inline / anchor

Method anchor

css-inline/src/html/selectors/mod.rs:102–108  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

100 /// If there are multiple selectors (comma-separated), returns None.
101 #[inline]
102 pub(crate) fn anchor(&self) -> SelectorAnchor<'_> {
103 // For multiple selectors, we fall back to scanning all elements
104 match self.0.as_slice() {
105 [single] => selector_anchor(single),
106 _ => SelectorAnchor::None,
107 }
108 }
109}
110
111#[cfg(test)]

Callers 1

selectFunction · 0.80

Calls 1

selector_anchorFunction · 0.85

Tested by

no test coverage detected