pub enum ModelPattern {
Show 14 variants
Cut(Span),
Lit {
binding: Option<Ident>,
lit: Lit,
},
RuleCall {
binding: Option<Ident>,
rule_name: Ident,
args: Vec<ModelPattern>,
},
Group(Vec<Vec<ModelPattern>>, Span),
Bracketed(Vec<ModelPattern>, Span),
Braced(Vec<ModelPattern>, Span),
Parenthesized(Vec<ModelPattern>, Span),
Optional(Box<ModelPattern>, Span),
Repeat(Box<ModelPattern>, Span),
Plus(Box<ModelPattern>, Span),
SpanBinding(Box<ModelPattern>, Ident, Span),
Recover {
binding: Option<Ident>,
body: Box<ModelPattern>,
sync: Box<ModelPattern>,
span: Span,
},
Peek(Box<ModelPattern>, Span),
Not(Box<ModelPattern>, Span),
}Variants§
Cut(Span)
Lit
RuleCall
Group(Vec<Vec<ModelPattern>>, Span)
Bracketed(Vec<ModelPattern>, Span)
Braced(Vec<ModelPattern>, Span)
Parenthesized(Vec<ModelPattern>, Span)
Optional(Box<ModelPattern>, Span)
Repeat(Box<ModelPattern>, Span)
Plus(Box<ModelPattern>, Span)
SpanBinding(Box<ModelPattern>, Ident, Span)
Recover
Peek(Box<ModelPattern>, Span)
Not(Box<ModelPattern>, Span)
Implementations§
Trait Implementations§
Source§impl Clone for ModelPattern
impl Clone for ModelPattern
Source§fn clone(&self) -> ModelPattern
fn clone(&self) -> ModelPattern
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModelPattern
impl Debug for ModelPattern
Auto Trait Implementations§
impl Freeze for ModelPattern
impl RefUnwindSafe for ModelPattern
impl !Send for ModelPattern
impl !Sync for ModelPattern
impl Unpin for ModelPattern
impl UnsafeUnpin for ModelPattern
impl UnwindSafe for ModelPattern
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more