advance_if_matches_constant

Function advance_if_matches_constant 

Source
fn advance_if_matches_constant<'a>(
    iter: &mut Peekable<impl Iterator<Item = &'a PhysicalSortExpr>>,
    constants: &[ConstExpr],
) -> Option<PhysicalSortExpr>
Expand description

Advances the iterator with a constant if the next expression matches one of the constants. Otherwise, the iterator is left unchanged and returns None.