Struct regex_syntax::ast::Concat
[−]
[src]
pub struct Concat { pub span: Span, pub asts: Vec<Ast>, }
A concatenation of regular expressions.
Fields
span: Span
The span of this concatenation.
asts: Vec<Ast>
The concatenation regular expressions.
Methods
impl Concat
[src][−]
pub fn into_ast(self) -> Ast
[src][−]
Return this concatenation as an AST.
If this concatenation contains zero ASTs, then Ast::Empty is returned. If this concatenation contains exactly 1 AST, then the corresponding AST is returned. Otherwise, Ast::Concat is returned.