Struct grep::Match
[−]
[src]
pub struct Match { /* fields omitted */ }
A matched line.
Methods
impl Match
[src]
fn new() -> Match
[src]
Create a new empty match value.
fn start(&self) -> usize
[src]
Return the starting byte offset of the line that matched.
fn end(&self) -> usize
[src]
Return the ending byte offset of the line that matched.
Trait Implementations
impl Clone for Match
[src]
fn clone(&self) -> Match
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more