Enum fancy_regex::Regex
[−]
[src]
pub enum Regex { Wrap { inner: Regex, inner1: Option<Box<Regex>>, }, Impl { prog: Prog, n_groups: usize, }, }
Variants
Wrap
Fields of Wrap
inner: Regex | |
inner1: Option<Box<Regex>> |
Impl
Fields of Impl
prog: Prog | |
n_groups: usize |
Methods
impl Regex
[src]
fn new(re: &str) -> Result<Regex>
fn is_match(&self, text: &str) -> Result<bool>
fn find(&self, text: &str) -> Result<Option<(usize, usize)>>
fn captures<'t>(&self, text: &'t str) -> Result<Option<Captures<'t>>>
fn captures_from_pos<'t>(
&self,
text: &'t str,
pos: usize
) -> Result<Option<Captures<'t>>>
&self,
text: &'t str,
pos: usize
) -> Result<Option<Captures<'t>>>