Struct regex_syntax::ast::Concat [−][src]
A concatenation of regular expressions.
Fields
span: Span
The span of this concatenation.
asts: Vec<Ast>
The concatenation regular expressions.
Methods
impl Concat[src]
impl Concatpub fn into_ast(self) -> Ast[src]
pub fn into_ast(self) -> AstReturn 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.
Trait Implementations
impl Clone for Concat[src]
impl Clone for Concatfn clone(&self) -> Concat[src]
fn clone(&self) -> ConcatReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for Concat[src]
impl Debug for Concatfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for Concat[src]
impl Eq for Concatimpl PartialEq for Concat[src]
impl PartialEq for Concat