Struct pest::prec_climber::Operator [] [src]

pub struct Operator<R: RuleType> { /* fields omitted */ }

A struct defining an infix operator used in PrecClimber.

Methods

impl<R: RuleType> Operator<R>
[src]

[src]

Creates a new Operator from a Rule and Assoc.

Examples

Operator::new(Rule::plus, Assoc::Left) | Operator::new(Rule::minus, Assoc::Right);

Trait Implementations

impl<R: Debug + RuleType> Debug for Operator<R>
[src]

[src]

Formats the value using the given formatter.

impl<R: RuleType> BitOr for Operator<R>
[src]

The resulting type after applying the | operator.

[src]

Performs the | operation.