Trait symspell::StringStrategy
source · [−]pub trait StringStrategy: Clone + Default {
fn new() -> Self;
fn prepare(&self, s: &str) -> String;
fn len(&self, s: &str) -> usize;
fn remove(&self, s: &str, index: usize) -> String;
fn slice(&self, s: &str, start: usize, end: usize) -> String;
fn suffix(&self, s: &str, start: usize) -> String;
fn at(&self, s: &str, i: isize) -> Option<char>;
}