Struct grep::Grep
[−]
[src]
pub struct Grep { /* fields omitted */ }
A fast line oriented regex searcher.
Methods
impl Grep
[src]
fn regex(&self) -> &Regex
Returns a reference to the underlying regex used by the searcher.
fn iter<'b, 's>(&'s self, buf: &'b [u8]) -> Iter<'b, 's>
Returns an iterator over all matches in the given buffer.
fn read_match(&self, mat: &mut Match, buf: &[u8], start: usize) -> bool
Fills in the next line that matches in the given buffer starting at the position given.
If no match could be found, false
is returned, otherwise, true
is
returned.
Trait Implementations
impl Clone for Grep
[src]
fn clone(&self) -> Grep
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