Enum regex_syntax::ast::Class [−][src]
pub enum Class { Unicode(ClassUnicode), Perl(ClassPerl), Bracketed(ClassBracketed), }
A single character class expression.
Variants
Unicode(ClassUnicode)
A Unicode character class, e.g., \pL
or \p{Greek}
.
Perl(ClassPerl)
A perl character class, e.g., \d
or \W
.
Bracketed(ClassBracketed)
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]
impl Class
Trait Implementations
impl Clone for Class
[src]
impl Clone for Class
fn clone(&self) -> Class
[src]
fn clone(&self) -> Class
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 Class
[src]
impl Debug for Class
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 Class
[src]
impl Eq for Class
impl PartialEq for Class
[src]
impl PartialEq for Class