Trait naive_opt::SearchBytes[][src]

pub trait SearchBytes {
    fn search_bytes<'a, P: SearchInBytes<'a>>(
        &'a self,
        needle: P
    ) -> Option<usize>;
fn rsearch_bytes<'a, P: SearchInBytes<'a>>(
        &'a self,
        needle: P
    ) -> Option<usize>;
fn search_indices_bytes<'a, P: SearchInBytes<'a>>(
        &'a self,
        needle: P
    ) -> SearchIndicesBytes<'a, P>

Notable traits for SearchIndicesBytes<'a, P>

impl<'a, P: SearchInBytes<'a>> Iterator for SearchIndicesBytes<'a, P> type Item = (usize, &'a [u8]);
;
fn rsearch_indices_bytes<'a, P: SearchInBytes<'a>>(
        &'a self,
        needle: P
    ) -> RevSearchIndicesBytes<'a, P>

Notable traits for RevSearchIndicesBytes<'a, P>

impl<'a, P: SearchInBytes<'a>> Iterator for RevSearchIndicesBytes<'a, P> type Item = (usize, &'a [u8]);
;
fn includes_bytes<'a, P: SearchInBytes<'a>>(&'a self, needle: P) -> bool; }

Required methods

fn search_bytes<'a, P: SearchInBytes<'a>>(&'a self, needle: P) -> Option<usize>[src]

fn rsearch_bytes<'a, P: SearchInBytes<'a>>(&'a self, needle: P) -> Option<usize>[src]

fn search_indices_bytes<'a, P: SearchInBytes<'a>>(
    &'a self,
    needle: P
) -> SearchIndicesBytes<'a, P>

Notable traits for SearchIndicesBytes<'a, P>

impl<'a, P: SearchInBytes<'a>> Iterator for SearchIndicesBytes<'a, P> type Item = (usize, &'a [u8]);
[src]

fn rsearch_indices_bytes<'a, P: SearchInBytes<'a>>(
    &'a self,
    needle: P
) -> RevSearchIndicesBytes<'a, P>

Notable traits for RevSearchIndicesBytes<'a, P>

impl<'a, P: SearchInBytes<'a>> Iterator for RevSearchIndicesBytes<'a, P> type Item = (usize, &'a [u8]);
[src]

fn includes_bytes<'a, P: SearchInBytes<'a>>(&'a self, needle: P) -> bool[src]

Loading content...

Implementations on Foreign Types

impl<'c> SearchBytes for &'c [u8][src]

impl<'c> SearchBytes for &'c str[src]

impl<'c> SearchBytes for String[src]

Loading content...

Implementors

Loading content...