[][src]Trait galm::search::Iterator

pub trait Iterator<'a, 'b> {
    type Item;
    fn get_similar_word(self, input_param: &'b str) -> &'a str;
}

Extend Iterator for search similar word.

Associated Types

type Item

Loading content...

Required methods

fn get_similar_word(self, input_param: &'b str) -> &'a str

Loading content...

Implementations on Foreign Types

impl<'a, 'b, '_> Iterator<'a, 'b> for Iter<'a, &'_ str>[src]

Extend Iterator for search similar word.

type Item = &'a str

fn get_similar_word(self, input_param: &'b str) -> &'a str[src]

Get similar word.

use galm::search::Iterator;
 
let result = [
    "-h", "--help",
    "-v", "--version"
].iter().get_similar_word("nelp");
 
assert_eq!(result, "--help");
Loading content...

Implementors

Loading content...