pub trait Pattern {
// Required methods
fn matches(&self, window: &[u8]) -> bool;
fn len(&self) -> usize;
// Provided method
fn is_empty(&self) -> bool { ... }
}Expand description
A trait for types that can be searched for within a byte slice