[][src]Enum pest_meta::optimizer::OptimizedExpr

pub enum OptimizedExpr {
    Str(String),
    Insens(String),
    Range(StringString),
    Ident(String),
    PeekSlice(i32Option<i32>),
    PosPred(Box<OptimizedExpr>),
    NegPred(Box<OptimizedExpr>),
    Seq(Box<OptimizedExpr>, Box<OptimizedExpr>),
    Choice(Box<OptimizedExpr>, Box<OptimizedExpr>),
    Opt(Box<OptimizedExpr>),
    Rep(Box<OptimizedExpr>),
    Skip(Vec<String>),
    Push(Box<OptimizedExpr>),
    RestoreOnErr(Box<OptimizedExpr>),
}

Variants

Str(String)
Insens(String)
Range(StringString)
Ident(String)
PeekSlice(i32Option<i32>)
PosPred(Box<OptimizedExpr>)
NegPred(Box<OptimizedExpr>)
Seq(Box<OptimizedExpr>, Box<OptimizedExpr>)
Choice(Box<OptimizedExpr>, Box<OptimizedExpr>)
Opt(Box<OptimizedExpr>)
Rep(Box<OptimizedExpr>)
Skip(Vec<String>)
Push(Box<OptimizedExpr>)
RestoreOnErr(Box<OptimizedExpr>)

Implementations

impl OptimizedExpr[src]

pub fn iter_top_down(&self) -> OptimizedExprTopDownIterator[src]

pub fn map_top_down<F>(self, f: F) -> OptimizedExpr where
    F: FnMut(OptimizedExpr) -> OptimizedExpr
[src]

pub fn map_bottom_up<F>(self, f: F) -> OptimizedExpr where
    F: FnMut(OptimizedExpr) -> OptimizedExpr
[src]

Trait Implementations

impl Clone for OptimizedExpr[src]

impl Debug for OptimizedExpr[src]

impl Eq for OptimizedExpr[src]

impl PartialEq<OptimizedExpr> for OptimizedExpr[src]

impl StructuralEq for OptimizedExpr[src]

impl StructuralPartialEq for OptimizedExpr[src]

Auto Trait Implementations

impl RefUnwindSafe for OptimizedExpr

impl Send for OptimizedExpr

impl Sync for OptimizedExpr

impl Unpin for OptimizedExpr

impl UnwindSafe for OptimizedExpr

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.