Struct grep::Grep [−][src]
pub struct Grep { /* fields omitted */ }
A fast line oriented regex searcher.
Methods
impl Grep
[src]
impl Grep
pub fn regex(&self) -> &Regex
[src]
pub fn regex(&self) -> &Regex
Returns a reference to the underlying regex used by the searcher.
ⓘImportant traits for Iter<'b, 's>pub fn iter<'b, 's>(&'s self, buf: &'b [u8]) -> Iter<'b, 's>
[src]
ⓘImportant traits for Iter<'b, 's>
pub fn iter<'b, 's>(&'s self, buf: &'b [u8]) -> Iter<'b, 's>
Returns an iterator over all matches in the given buffer.
pub fn read_match(&self, mat: &mut Match, buf: &[u8], start: usize) -> bool
[src]
pub 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]
impl Clone for Grep
fn clone(&self) -> Grep
[src]
fn clone(&self) -> Grep
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 Grep
[src]
impl Debug for Grep