Trait stringzilla::StringZilla
source · pub trait StringZilla<N>{
// 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§
sourcefn sz_find(&self, needle: N) -> Option<usize>
fn sz_find(&self, needle: N) -> Option<usize>
Generic function to find the first occurrence of a substring or a subarray.
sourcefn sz_rfind(&self, needle: N) -> Option<usize>
fn sz_rfind(&self, needle: N) -> Option<usize>
Generic function to find the last occurrence of a substring or a subarray.
sourcefn sz_find_char_from(&self, needles: N) -> Option<usize>
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.
sourcefn sz_rfind_char_from(&self, needles: N) -> Option<usize>
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.
sourcefn sz_find_char_not_from(&self, needles: N) -> Option<usize>
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.
sourcefn sz_rfind_char_not_from(&self, needles: N) -> Option<usize>
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.