Struct dym::Lexicon [] [src]

pub struct Lexicon { /* fields omitted */ }

Methods

impl Lexicon
[src]

Creates an empty Lexicon

Inserts a copy of the given word into the Lexicon after converting it to lowercase and trimming whitespace

Inserts a copy of all given words into the Lexicon after converting them to lowercase and trimming whitespace

Returns true if the Lexicon contains the given word

Returns all words in the Lexicon that are at most two edits away from the given word.

Trait Implementations

impl Debug for Lexicon
[src]

Formats the value using the given formatter.

impl Eq for Lexicon
[src]

impl PartialEq for Lexicon
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.