Trait symspell::StringStrategy
[−]
[src]
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>; }
Required Methods
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>
Implementors
impl StringStrategy for AsciiStringStrategy
impl StringStrategy for UnicodeiStringStrategy