Struct regex_syntax::hir::translate::Flags [−][src]
struct Flags { case_insensitive: Option<bool>, multi_line: Option<bool>, dot_matches_new_line: Option<bool>, swap_greed: Option<bool>, unicode: Option<bool>, }
A translator's representation of a regular expression's flags at any given moment in time.
Each flag can be in one of three states: absent, present but disabled or present but enabled.
Fields
case_insensitive: Option<bool>
multi_line: Option<bool>
dot_matches_new_line: Option<bool>
swap_greed: Option<bool>
unicode: Option<bool>
Methods
impl Flags
[src]
impl Flags
fn from_ast(ast: &Flags) -> Flags
[src]
fn from_ast(ast: &Flags) -> Flags
fn merge(&mut self, previous: &Flags)
[src]
fn merge(&mut self, previous: &Flags)
fn case_insensitive(&self) -> bool
[src]
fn case_insensitive(&self) -> bool
fn multi_line(&self) -> bool
[src]
fn multi_line(&self) -> bool
fn dot_matches_new_line(&self) -> bool
[src]
fn dot_matches_new_line(&self) -> bool
fn swap_greed(&self) -> bool
[src]
fn swap_greed(&self) -> bool
fn unicode(&self) -> bool
[src]
fn unicode(&self) -> bool
Trait Implementations
impl Clone for Flags
[src]
impl Clone for Flags
fn clone(&self) -> Flags
[src]
fn clone(&self) -> Flags
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 Copy for Flags
[src]
impl Copy for Flags
impl Debug for Flags
[src]
impl Debug for Flags
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 Default for Flags
[src]
impl Default for Flags