[−][src]Enum pest_meta::ast::Expr
Variants
Str(String)
Matches an exact string, e.g. "a"
Insens(String)
Matches an exact string, case insensitively (ASCII only), e.g. ^"a"
Matches one character in the range, e.g. 'a'..'z'
Ident(String)
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
Matches a sequence of two expressions, e.g. e1 ~ e2
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+
Matches an expression an exact number of times, e.g. e{n}
Matches an expression at least a number of times, e.g. e{n,}
Matches an expression at most a number of times, e.g. e{,n}
Matches an expression a number of times within a range, e.g. e{m, n}
Continues to match expressions until one of the strings in the Vec
is found
Matches an expression and pushes it to the stack, e.g. push(e)
Implementations
impl Expr
[src]
pub fn iter_top_down(&self) -> ExprTopDownIteratorⓘNotable traits for ExprTopDownIterator
impl Iterator for ExprTopDownIterator type Item = Expr;
[src]
Notable traits for ExprTopDownIterator
impl Iterator for ExprTopDownIterator type Item = Expr;
pub fn map_top_down<F>(self, f: F) -> Expr where
F: FnMut(Expr) -> Expr,
[src]
F: FnMut(Expr) -> Expr,
pub fn map_bottom_up<F>(self, f: F) -> Expr where
F: FnMut(Expr) -> Expr,
[src]
F: FnMut(Expr) -> Expr,
Trait Implementations
impl Clone for Expr
[src]
impl Debug for Expr
[src]
impl Eq for Expr
[src]
impl PartialEq<Expr> for Expr
[src]
impl StructuralEq for Expr
[src]
impl StructuralPartialEq for Expr
[src]
Auto Trait Implementations
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnwindSafe for Expr
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,