suggest

A minimal library to provide similar name suggestions like "Did you mean?" This library provides suggestion traits for all collection types in the standard library.
This library is intended to suggest a candidate from a list of unknown suggestions until runtime, in addition to the suggestion feature already available in clap.
Installation
Add the following to your Cargo.toml:
[]
= "0.5"
Examples
Simple case
This example can be executed by the cargo run --example simple command.
use Suggest;
$ cargo run
No command named `instakk` found.
Did you mean `install`?
Specifying distance
use Suggest;
$ cargo run
No command named `paoc` found.
Did you mean `poac`?
Supported types
Please let me know if anything is left out through issues or pull requests.
Sequences
LinkedListVecDequeVec
Maps
HashMapBTreeMap
To suggest keys, use suggest::SuggestKey trait.
Sets
BTreeSetHashSet
Misc
BinaryHeap[T; N]: primitive array[T]: slices
Contribution
Contributions, including issues and pull requests, are very welcome.
Build
Test
Publish
GitHub Releases
crates.io