Enum pest_meta::parser::ParserExpr
source · [−]pub enum ParserExpr<'i> {
Show 17 variants
Str(String),
Insens(String),
Range(String, String),
Ident(String),
PeekSlice(i32, Option<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>>, u32, u32),
Push(Box<ParserNode<'i>>),
}
Variants
Str(String)
Insens(String)
Range(String, String)
Ident(String)
PeekSlice(i32, Option<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>>, u32, u32)
Push(Box<ParserNode<'i>>)
Trait Implementations
sourceimpl<'i> Clone for ParserExpr<'i>
impl<'i> Clone for ParserExpr<'i>
sourcefn clone(&self) -> ParserExpr<'i>
fn clone(&self) -> ParserExpr<'i>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'i> Debug for ParserExpr<'i>
impl<'i> Debug for ParserExpr<'i>
sourceimpl<'i> PartialEq<ParserExpr<'i>> for ParserExpr<'i>
impl<'i> PartialEq<ParserExpr<'i>> for ParserExpr<'i>
sourcefn eq(&self, other: &ParserExpr<'i>) -> bool
fn eq(&self, other: &ParserExpr<'i>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ParserExpr<'i>) -> bool
fn ne(&self, other: &ParserExpr<'i>) -> bool
This method tests for !=
.
impl<'i> Eq for ParserExpr<'i>
impl<'i> StructuralEq for ParserExpr<'i>
impl<'i> StructuralPartialEq for ParserExpr<'i>
Auto Trait Implementations
impl<'i> RefUnwindSafe for ParserExpr<'i>
impl<'i> Send for ParserExpr<'i>
impl<'i> Sync for ParserExpr<'i>
impl<'i> Unpin for ParserExpr<'i>
impl<'i> UnwindSafe for ParserExpr<'i>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more