pub trait StringZilla<N>
where N: AsRef<[u8]>,
{ // Required methods fn sz_find(&self, needle: N) -> Option<usize>; fn sz_rfind(&self, needle: N) -> Option<usize>; fn sz_find_char_from(&self, needles: N) -> Option<usize>; fn sz_rfind_char_from(&self, needles: N) -> Option<usize>; fn sz_find_char_not_from(&self, needles: N) -> Option<usize>; fn sz_rfind_char_not_from(&self, needles: N) -> Option<usize>; }

Required Methods§

source

fn sz_find(&self, needle: N) -> Option<usize>

Generic function to find the first occurrence of a substring or a subarray.

source

fn sz_rfind(&self, needle: N) -> Option<usize>

Generic function to find the last occurrence of a substring or a subarray.

source

fn sz_find_char_from(&self, needles: N) -> Option<usize>

Generic function to find the first occurrence of a character/element from the second argument.

source

fn sz_rfind_char_from(&self, needles: N) -> Option<usize>

Generic function to find the last occurrence of a character/element from the second argument.

source

fn sz_find_char_not_from(&self, needles: N) -> Option<usize>

Generic function to find the first occurrence of a character/element from the second argument.

source

fn sz_rfind_char_not_from(&self, needles: N) -> Option<usize>

Generic function to find the last occurrence of a character/element from the second argument.

Implementors§

source§

impl<T, N> StringZilla<N> for T
where T: AsRef<[u8]>, N: AsRef<[u8]>,