Expand description
This library provides suggestion traits for all collection types in the standard library.
§Example
use suggest::Suggest;
let input = "instakk";
let list_commands = vec!["update", "install"];
if list_commands.contains(&input) {
return;
}
if let Some(sugg) = list_commands.suggest(input) {
println!("No command named `{}` found.", input);
println!("Did you mean `{}`?", sugg);
}
$ cargo run
No command named `instakk` found.
Did you mean `install`?