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 Flagsfn from_ast(ast: &Flags) -> Flags[src]
fn from_ast(ast: &Flags) -> Flagsfn merge(&mut self, previous: &Flags)[src]
fn merge(&mut self, previous: &Flags)fn case_insensitive(&self) -> bool[src]
fn case_insensitive(&self) -> boolfn multi_line(&self) -> bool[src]
fn multi_line(&self) -> boolfn dot_matches_new_line(&self) -> bool[src]
fn dot_matches_new_line(&self) -> boolfn swap_greed(&self) -> bool[src]
fn swap_greed(&self) -> boolfn unicode(&self) -> bool[src]
fn unicode(&self) -> boolTrait Implementations
impl Clone for Flags[src]
impl Clone for Flagsfn clone(&self) -> Flags[src]
fn clone(&self) -> FlagsReturns 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 Flagsimpl Debug for Flags[src]
impl Debug for Flagsfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for Flags[src]
impl Default for Flags