pub enum Ast {
Char(char),
Digit,
Space,
Seq(Vec<Ast>),
Or(Vec<Ast>),
Optional(Box<Ast>),
CS(Box<Ast>),
Quantifier(Box<Ast>, u32, u32),
}
Expand description
A reggy
pattern represented as an AST
Variants§
Char(char)
Digit
Space
Seq(Vec<Ast>)
Or(Vec<Ast>)
Optional(Box<Ast>)
CS(Box<Ast>)
Quantifier(Box<Ast>, u32, u32)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ast
impl RefUnwindSafe for Ast
impl Send for Ast
impl Sync for Ast
impl Unpin for Ast
impl UnwindSafe for Ast
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