Function visit_all_in_iter_compound

Source
fn visit_all_in_iter_compound<T: SelectorVisitor<Impl = SelectorImpl>>(
    visitor: &mut T,
    iter: &mut SelectorIter<'_, SelectorImpl>,
) -> (bool, usize)
Expand description

Visit all the simple selectors in the iter compound and return the number of simple selectors visited. We need to return a tuple because we need to keep track of two things:

  1. Should the traversal continue and
  2. What the offset of the compound state is.