Struct regex::Match
[−]
[src]
pub struct Match<'t> { /* fields omitted */ }
Match represents a single match of a regex in a haystack.
The lifetime parameter 't
refers to the lifetime of the matched text.
Methods
impl<'t> Match<'t>
[src]
fn start(&self) -> usize
Returns the starting byte offset of the match in the haystack.
fn end(&self) -> usize
Returns the ending byte offset of the match in the haystack.
fn as_str(&self) -> &'t str
Returns the matched text.
Trait Implementations
impl<'t> Copy for Match<'t>
[src]
impl<'t> Clone for Match<'t>
[src]
fn clone(&self) -> Match<'t>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more