Struct regex_syntax::ast::Alternation
[−]
[src]
pub struct Alternation { pub span: Span, pub asts: Vec<Ast>, }
An alternation of regular expressions.
Fields
span: Span
The span of this alternation.
asts: Vec<Ast>
The alternate regular expressions.
Methods
impl Alternation
[src]
pub fn into_ast(self) -> Ast
[src]
Return this alternation as an AST.
If this alternation contains zero ASTs, then Ast::Empty is returned. If this alternation contains exactly 1 AST, then the corresponding AST is returned. Otherwise, Ast::Alternation is returned.
Trait Implementations
impl Clone for Alternation
[src]
fn clone(&self) -> Alternation
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Alternation
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Eq for Alternation
[src]
impl PartialEq for Alternation
[src]
fn eq(&self, __arg_0: &Alternation) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Alternation) -> bool
[src]
This method tests for !=
.