pub type InfixExpr<Operand, Operator, const MAX: usize = 2> = DelimitedVec<Operand, Operator, Forbidden, 1, MAX>;Expand description
Generic infix operator expression.
Parses: Operand (Op Operand)? (minimum 1 operand, maximum 2 operands by default)
This is implemented as a DelimitedVec with:
MIN = 1: At least one operand must be present (the left operand)MAX = 2: At most two operands (left and optional right), can be overriddenTrailingDelimiter::Forbidden: No trailing operator allowed
§Type Parameters
Operand: The type of expressions that can appear on either side of the operatorOperator: The operator type (typically an enum of different operators at this precedence level)MAX: Maximum number of operands (defaults to 2 for binary, can be set to limit chaining)
Aliased Type§
pub struct InfixExpr<Operand, Operator, const MAX: usize = 2>(/* private fields */);