Enum regex_syntax::ast::Class[][src]

pub enum Class {
    Unicode(ClassUnicode),
    Perl(ClassPerl),
    Bracketed(ClassBracketed),
}

A single character class expression.

Variants

A Unicode character class, e.g., \pL or \p{Greek}.

A perl character class, e.g., \d or \W.

A bracketed character class set, which may contain zero or more character ranges and/or zero or more nested classes. e.g., [a-zA-Z\pL].

Methods

impl Class
[src]

Return the span of this character class.

Trait Implementations

impl Clone for Class
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Class
[src]

Formats the value using the given formatter. Read more

impl Eq for Class
[src]

impl PartialEq for Class
[src]

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

This method tests for !=.

Auto Trait Implementations

impl Send for Class

impl Sync for Class