Trait Needle
Other items inexpectrl
pub trait Needle { fn check(&self, buf: &[u8], eof: bool) -> Result<Option<Match>, Error>; }
Needle an interface for search of a match in a buffer.
fn check(&self, buf: &[u8], eof: bool) -> Result<Option<Match>, Error>
impl Needle for Eof
impl Needle for NBytes
impl<B: AsRef<[u8]>> Needle for B
impl<Re: AsRef<str>> Needle for Regex<Re>