Struct grep::Match
[−]
[src]
pub struct Match { /* fields omitted */ }
A matched line.
Methods
impl Match
[src]
fn new() -> Match
Create a new empty match value.
fn start(&self) -> usize
Return the starting byte offset of the line that matched.
fn end(&self) -> usize
Return the ending byte offset of the line that matched.
Trait Implementations
impl Clone for Match
[src]
fn clone(&self) -> Match
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