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

Method next

css-inline/src/html/iter.rs:21–26  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

19impl ElementSource<'_> {
20 #[inline]
21 fn next(&mut self) -> Option<NodeId> {
22 match self {
23 ElementSource::Slice(iter) => iter.next().copied(),
24 ElementSource::Single(opt) => opt.take(),
25 }
26 }
27}
28
29/// Compile selectors from a string and create an element iterator that yields elements matching these selectors.

Callers 5

mainFunction · 0.80
exhaustFunction · 0.80
append_ruleFunction · 0.80
start_elemMethod · 0.80
newMethod · 0.80

Calls 2

iterMethod · 0.80
matchesMethod · 0.80

Tested by

no test coverage detected