pub trait Needle { fn check(&self, buf: &[u8], eof: bool) -> Result<Vec<Match>, Error>; }
Needle an interface for search of a match in a buffer.
Function returns all matches that were occured.