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