pub trait Needle {
// Required method
fn check(&self, buf: &[u8], eof: bool) -> Result<Vec<Match>, Error>;
}
Expand description
Needle an interface for search of a match in a buffer.
pub trait Needle {
// Required method
fn check(&self, buf: &[u8], eof: bool) -> Result<Vec<Match>, Error>;
}
Needle an interface for search of a match in a buffer.