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

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

Infix operator used in PrecClimber.

Methods

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

pub fn new(rule: R, assoc: Assoc) -> Operator<R>[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]

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

type Output = Self

The resulting type after applying the | operator.

Auto Trait Implementations

impl<R> Send for Operator<R> where
    R: Send

impl<R> Sync for Operator<R> where
    R: Sync

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]