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>; fn sz_edit_distance(&self, other: N) -> usize; fn sz_alignment_score( &self, other: N, matrix: [[i8; 256]; 256], gap: i8 ) -> isize; }
Expand description

The StringZilla trait provides a collection of string searching and manipulation functionalities.

Required Methods§

source

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

source

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

source

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

source

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

source

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

source

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

source

fn sz_edit_distance(&self, other: N) -> usize

source

fn sz_alignment_score( &self, other: N, matrix: [[i8; 256]; 256], gap: i8 ) -> isize

Implementors§

source§

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