Struct arc_pest::Operator[][src]

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

Infix operator used in PrecClimber.

Implementations

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

type Output = Operator<R>

The resulting type after applying the | operator.

impl<R> Debug for Operator<R> where
    R: RuleType + Debug
[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.