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

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

Infix operator used in PrecClimber.

Implementations

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: RuleType> BitOr<Operator<R>> for Operator<R>[src]

type Output = Self

The resulting type after applying the | operator.

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

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

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

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

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.