Struct Concat
pub struct Concat { pub span: Span, pub asts: Vec<Ast> }
A concatenation of regular expressions.
Fields
span: SpanThe span of this concatenation.
asts: Vec<Ast>The concatenation regular expressions.
Implementations
impl Concat
fn into_ast(self) -> AstReturn this concatenation as an AST.
If this alternation contains zero ASTs, then
Ast::emptyis returned. If this alternation contains exactly 1 AST, then the corresponding AST is returned. Otherwise,Ast::concatis returned.
Trait Implementations
impl Clone for Concat
fn clone(&self) -> Self
impl Debug for Concat
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for Concat
impl PartialEq for Concat
fn eq(&self, other: &Self) -> bool