Skip to main content

Module words

Module words 

Source
Available on crate feature std only.
Expand description

A word-list module for passphrase generation and text processing. Backed by HashSet<String> for O(1) lookups with a curated built-in WORD_LIST. Requires std. Word-list management for passphrase generation and text processing.

Use Words::default() to load the curated built-in dictionary, or Words::new() to start with an empty set and populate it with Words::add_word(). All lookups are O(1) via HashSet.

Structs§

Words
A deduplicated set of words with O(1) lookup.

Constants§

WORD_LIST
The predefined list of words used to initialize the Words struct.