fn needs_rewrite(&self, o: &Operation) -> bool {
        match o.operator {
            Operator::Add
            | Operator::Dot
            | Operator::Div
            | Operator::Mul
            | Operator::Sub
            | Operator::Mod
            | Operator::Rem
                if o.args.len() == 2 =>
            {
                true
            }
            Operator::New if o.args.len() == 1 => true,
            _ => false,
        }
    }
/// Return true if the expression should be rewritten.
Return true if the expression should be rewritten.
Return true if the expression should be rewritten .
fn needs_rewrite(&self, o: &Operation) -> bool {
        match o.operator {
            Operator::Add
            | Operator::Dot
            | Operator::Div
            | Operator::Mul
            | Operator::Sub
            | Operator::Mod
            | Operator::Rem
                if o.args.len() == 2 =>
            {
                true
            }
            Operator::New if o.args.len() == 1 => true,
            _ => false,
        }
    }
fn needs_rewrite ( & self , o : & Operation ) -> bool { match o . operator { Operator :: Add | Operator :: Dot | Operator :: Div | Operator :: Mul | Operator :: Sub | Operator :: Mod | Operator :: Rem if o . args . len ( ) == 2 => { true } Operator :: New if o . args . len ( ) == 1 => true , _ => false , } }
Return true if the expression should be rewritten.
Return true if the expression should be rewritten .
&self
o
&Operation