advance_if_match

Function advance_if_match 

Source
fn advance_if_match<'a>(
    iter1: &mut Peekable<impl Iterator<Item = &'a PhysicalSortExpr>>,
    iter2: &mut Peekable<impl Iterator<Item = &'a PhysicalSortExpr>>,
) -> Option<PhysicalSortExpr>
Expand description

Advances two iterators in parallel if the next expressions are equal. Otherwise, the iterators are left unchanged and returns None.