Struct pcre2::bytes::Match [−][src]
pub struct Match<'s> { /* fields omitted */ }
Match represents a single match of a regex in a subject string.
The lifetime parameter 's
refers to the lifetime of the matched portion
of the subject string.
Methods
impl<'s> Match<'s>
[src]
impl<'s> Match<'s>
pub fn start(&self) -> usize
[src]
pub fn start(&self) -> usize
Returns the starting byte offset of the match in the subject.
pub fn end(&self) -> usize
[src]
pub fn end(&self) -> usize
Returns the ending byte offset of the match in the subject.
pub fn as_bytes(&self) -> &'s [u8]
[src]
pub fn as_bytes(&self) -> &'s [u8]
Returns the matched portion of the subject string.
Trait Implementations
impl<'s> Clone for Match<'s>
[src]
impl<'s> Clone for Match<'s>
fn clone(&self) -> Match<'s>
[src]
fn clone(&self) -> Match<'s>
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<'s> Copy for Match<'s>
[src]
impl<'s> Copy for Match<'s>
impl<'s> Debug for Match<'s>
[src]
impl<'s> Debug for Match<'s>
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<'s> Eq for Match<'s>
[src]
impl<'s> Eq for Match<'s>
impl<'s> PartialEq for Match<'s>
[src]
impl<'s> PartialEq for Match<'s>