wiwi::parser::input

Trait Needle

Source
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 { ... } }

Required Methods§

Source

fn len(&self) -> usize

Source

fn input_starts_with(&self, input: &I) -> bool

Provided Methods§

Source

fn is_empty(&self) -> bool

Implementations on Foreign Types§

Source§

impl<'h> Needle<&'h [u8]> for &[u8]

Source§

fn len(&self) -> usize

Source§

fn input_starts_with(&self, input: &&'h [u8]) -> bool

Implementors§