pub trait Needle<I>where
I: Input,{
// Required methods
fn len(&self) -> usize;
fn input_starts_with(&self, input: &I) -> bool;
// Provided method
fn is_empty(&self) -> bool { ... }
}
pub trait Needle<I>where
I: Input,{
// Required methods
fn len(&self) -> usize;
fn input_starts_with(&self, input: &I) -> bool;
// Provided method
fn is_empty(&self) -> bool { ... }
}