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 Alternationpub fn into_ast(self) -> Ast[src]
pub fn into_ast(self) -> AstReturn 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 Alternationfn clone(&self) -> Alternation[src]
fn clone(&self) -> AlternationReturns 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 Alternationfn 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 Alternation[src]
impl Eq for Alternationimpl PartialEq for Alternation[src]
impl PartialEq for Alternationfn eq(&self, other: &Alternation) -> bool[src]
fn eq(&self, other: &Alternation) -> boolThis 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) -> boolThis method tests for !=.
Auto Trait Implementations
impl Send for Alternation
impl Send for Alternationimpl Sync for Alternation
impl Sync for Alternation