Trait naive_opt::SearchInBytes[][src]

pub trait SearchInBytes<'a>: Sized {
    fn search_in(&self, haystack: &'a [u8]) -> Option<usize>;
fn rsearch_in(&self, haystack: &'a [u8]) -> Option<usize>;
fn len(&self) -> usize; fn is_empty(&self) -> bool { ... }
fn includes_in(&self, haystack: &'a [u8]) -> bool { ... } }

Required methods

fn search_in(&self, haystack: &'a [u8]) -> Option<usize>[src]

fn rsearch_in(&self, haystack: &'a [u8]) -> Option<usize>[src]

fn len(&self) -> usize[src]

Loading content...

Provided methods

fn is_empty(&self) -> bool[src]

fn includes_in(&self, haystack: &'a [u8]) -> bool[src]

Loading content...

Implementations on Foreign Types

impl<'a, 'b> SearchInBytes<'a> for &'b [u8][src]

impl<'a, 'b> SearchInBytes<'a> for &'b str[src]

impl<'a, 'b> SearchInBytes<'a> for &'b String[src]

impl<'a, 'b> SearchInBytes<'a> for char[src]

Loading content...

Implementors

Loading content...