Trait fast_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[src]

fn prepare(&self, s: &str) -> String[src]

fn len(&self, s: &str) -> usize[src]

fn remove(&self, s: &str, index: usize) -> String[src]

fn slice(&self, s: &str, start: usize, end: usize) -> String[src]

fn suffix(&self, s: &str, start: usize) -> String[src]

fn at(&self, s: &str, i: isize) -> Option<char>[src]

Loading content...

Implementors

impl StringStrategy for AsciiStringStrategy[src]

impl StringStrategy for UnicodeStringStrategy[src]

Loading content...