pub enum ParserExpr<'i> {
Show 17 variants Str(String), Insens(String), Range(StringString), Ident(String), PeekSlice(i32Option<i32>), PosPred(Box<ParserNode<'i>>), NegPred(Box<ParserNode<'i>>), Seq(Box<ParserNode<'i>>, Box<ParserNode<'i>>), Choice(Box<ParserNode<'i>>, Box<ParserNode<'i>>), Opt(Box<ParserNode<'i>>), Rep(Box<ParserNode<'i>>), RepOnce(Box<ParserNode<'i>>), RepExact(Box<ParserNode<'i>>, u32), RepMin(Box<ParserNode<'i>>, u32), RepMax(Box<ParserNode<'i>>, u32), RepMinMax(Box<ParserNode<'i>>, u32u32), Push(Box<ParserNode<'i>>),
Expand description

All possible parser expressions



Matches an exact string, e.g. "a"


Matches an exact string, case insensitively (ASCII only), e.g. ^"a"


Matches one character in the range, e.g. 'a'..'z'


Matches the rule with the given name, e.g. a


Matches a custom part of the stack, e.g. PEEK[..]


Positive lookahead; matches expression without making progress, e.g. &e


Negative lookahead; matches if expression doesn’t match, without making progress, e.g. !e

Seq(Box<ParserNode<'i>>, Box<ParserNode<'i>>)

Matches a sequence of two expressions, e.g. e1 ~ e2

Choice(Box<ParserNode<'i>>, Box<ParserNode<'i>>)

Matches either of two expressions, e.g. e1 | e2


Optionally matches an expression, e.g. e?


Matches an expression zero or more times, e.g. e*


Matches an expression one or more times, e.g. e+

RepExact(Box<ParserNode<'i>>, u32)

Matches an expression an exact number of times, e.g. e{n}

RepMin(Box<ParserNode<'i>>, u32)

Matches an expression at least a number of times, e.g. e{n,}

RepMax(Box<ParserNode<'i>>, u32)

Matches an expression at most a number of times, e.g. e{,n}

RepMinMax(Box<ParserNode<'i>>, u32u32)

Matches an expression a number of times within a range, e.g. e{m, n}


Matches an expression and pushes it to the stack, e.g. push(e)

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.