Skip to main content

operand_needs_parens

Function operand_needs_parens 

Source
pub fn operand_needs_parens(
    parent: Precedence,
    child: Precedence,
    side: OperandSide,
) -> bool
Expand description

Whether child must be parenthesized to keep its grouping as the side operand of parent in the current grammar.