Struct regex_syntax::ast::Alternation [] [src]

pub struct Alternation {
    pub span: Span,
    pub asts: Vec<Ast>,
}

An alternation of regular expressions.

Fields

The span of this alternation.

The alternate regular expressions.

Methods

impl Alternation
[src]

[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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Alternation
[src]

[src]

Formats the value using the given formatter. Read more

impl Eq for Alternation
[src]

impl PartialEq for Alternation
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

Auto Trait Implementations

impl Send for Alternation

impl Sync for Alternation