pub fn action(&self, relation: &mut MirRelationExpr) {
        if let MirRelationExpr::Map { input, scalars } = relation {
            while let MirRelationExpr::Map {
                input: inner_input,
                scalars: inner_scalars,
            } = &mut **input
            {
                inner_scalars.append(scalars);
                mem::swap(scalars, inner_scalars);
                **input = inner_input.take_dangerous();
            }

            if scalars.is_empty() {
                *relation = input.take_dangerous();
            }
        }
    }
/// Fuses a sequence of `Map` operators into one `Map` operator.
/// Remove the map operator if it is empty.
Fuses a sequence of `Map` operators into one `Map` operator.
Remove the map operator if it is empty.
Fuses a sequence of ` Map ` operators into one ` Map ` operator . Remove the map operator if it is empty .
pub fn action(&self, relation: &mut MirRelationExpr) {
        if let MirRelationExpr::Map { input, scalars } = relation {
            while let MirRelationExpr::Map {
                input: inner_input,
                scalars: inner_scalars,
            } = &mut **input
            {
                inner_scalars.append(scalars);
                mem::swap(scalars, inner_scalars);
                **input = inner_input.take_dangerous();
            }
            if scalars.is_empty() {
                *relation = input.take_dangerous();
            }
        }
    }
pub fn action ( & self , relation : & mut MirRelationExpr ) { if let MirRelationExpr :: Map { input , scalars } = relation { while let MirRelationExpr :: Map { input : inner_input , scalars : inner_scalars , } = & mut * * input { inner_scalars . append ( scalars ) ; mem :: swap ( scalars , inner_scalars ) ; * * input = inner_input . take_dangerous ( ) ; } if scalars . is_empty ( ) { * relation = input . take_dangerous ( ) ; } } }
Fuses a sequence of `Map` operators into one `Map` operator.
Fuses a sequence of ` Map ` operators into one ` Map ` operator .
&self
relation
&mut MirRelationExpr
&self
relation
&mut MirRelationExpr