Struct regex_syntax::ast::Alternation [−][src]
An alternation of regular expressions.
Fields
span: Span
The span of this alternation.
asts: Vec<Ast>
The alternate regular expressions.
Methods
impl Alternation
[src]
impl Alternation
pub fn into_ast(self) -> Ast
[src]
pub fn into_ast(self) -> Ast
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]
impl Clone for Alternation
fn clone(&self) -> Alternation
[src]
fn clone(&self) -> Alternation
Returns 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 Alternation
[src]
impl Debug for Alternation
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for Alternation
[src]
impl Eq for Alternation
impl PartialEq for Alternation
[src]
impl PartialEq for Alternation
fn eq(&self, other: &Alternation) -> bool
[src]
fn eq(&self, other: &Alternation) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Alternation) -> bool
[src]
fn ne(&self, other: &Alternation) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for Alternation
impl Send for Alternation
impl Sync for Alternation
impl Sync for Alternation